html, body {
    height: 100%;
    color: #333;
}

.clear {
    clear: both;
}

.fullbg {
    position: fixed;
    left: 0px;
    top: 0px;
    height: 100vh;
    width: 100vw;
    opacity: 0.6;
    z-index: -2;
    background-image: url('../imagenes/backgrounds/bg.jpg');
    background-repeat: no-repeat;
    background-size: 100%;
}

.copy {
    cursor: pointer;
}

.abcRioButton {
    margin: auto;
}

.site-index .hm {
    padding: 20px;
    padding-bottom: 20px;
    margin-bottom: 15px;
    min-height: auto !important;
}

.site-index .hm .title {
    margin-top: -20px;
}

.site-index .hm.hm6 {
    min-height: auto !important;
}

.site-index p {
    color: inherit;
}

.html2canvas-container {
    width: 3000px !important;
    height: 3000px !important;
}

#ThreeJS {
    position: fixed;
    z-index: 1051;
    left: 0px;
    top: 0px;
    opacity: 1;
    pointer-events: none;
    height: 95vh;
    width: 95vw;
}

.fa-pencil::before {
    content: "\f303";
}

p, .table, .sim-table, span.p {
    font-size: 1.6rem;
    color: #333;
    margin: 0px 0px 1em;
    padding: 0px;
}

td.header strong {
    margin: 10px 0;
    display: block;
}

span.p {
    margin: 0;
}

ul {
    font-size: 1.6rem;
}

a b {
    color: #337ab7;
}

.indexador {
    position: absolute;
    margin-top: -154px;
    pointer-events: none;
}

.sim-table-header {
    border-bottom: 2px solid #ddd;
    padding: 8px;
}

.dropdown-menu{
    width: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 40px 20px;
    min-height: 100vh;
}

.wrap > .container > div:not(.my-alert):nth-of-type(1),
.wrap > .container > div.index {
    min-height: calc(100vh - 180px);
}

li.lang-es a, li.lang-en a {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

li.lang-es.active a, li.lang-en.active a {
    background-color: transparent !important;
}

a {
    text-decoration: none !important;
}

a.link, a.local {
    text-decoration: underline !important;
    margin-right: 0px;
}

a.local {
    text-decoration-style: dotted !important;
}

a.link::after, a.local::after {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    content: "\f35d";
    font-size: 9px;
    margin: 0px 1px 1px 1px;
    opacity: 0.8;
    margin-left: 3px;
}

a.local::after {
    content: "\f002";
    font-size: 10px;
}

a.roto {
    color: #AE1010;
}

a.roto::after {
    content: "\f127";
}

#buscador-global-option .form-group {
    margin-bottom: 0px;
}

.dado {
    transition-duration: 2s;
    transition-timing-function: ease-out;
}

.help-block {
/*    position: absolute;*/
    /*right: 110px;*/
}

.form-group {
    margin-bottom: 40px;
}

.modal-content {
    background: url(../imagenes/backgrounds/background.jpg) 0 0 repeat;
}

.modal-content {
    /*margin-top: 150px;*/
}

#modal .modal-content {
    margin-top: 150px;
}

body {
    overflow-y: scroll !important;
    padding-right: 0px !important;
}

.modal-open {
    overflow-y: scroll !important;
    padding-right: 0px !important;
}

.modal {
    /*margin-top: 10vw;*/
}

.resultados-buscador {
    padding-left: 20px;
    height: 300px;
    overflow-y: scroll;
}

.footer {
    position: relative;
    z-index: 997;
    min-height: 160px;
    border-top: 1px solid #080808;
    padding-top: 20px;
    background-color: #222;
    /*padding-left: 250px;*/
}

.footer p {
    color: #9d9d9d !important;
}

.footer .access-list a {
    color: #9d9d9d !important;
}

.footer .access-list a:hover {
    color: #FFF !important;
    text-decoration: underline !important;
}

.footer .access-list {
    padding-top: 15px;
    text-align: center;
}

.footer .access-list li {
    display: inline;
    margin: 10px;
}

.fondo {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url(../imagenes/backgrounds/background.jpg) 0 0 repeat;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.page-header {
    margin-top: -50px;
}

.total-hide {
    display: none !important;
}

#yii-debug-toolbar {
   /*display: none !important;*/
}

input:focus, a:focus, button:focus {
    outline: none !important;
    -moz-outline-style: none !important;
}

.icon-arrow-up, .icon-arrow-down {
    border: 2px solid #000;
    color: #000 !important;
    /*padding: 7px 10px 9px 11px !important;*/
    border-radius: 30px;
    cursor: pointer;
    z-index: 998;
    position: fixed;
    display: none;
    bottom: 7px;
    right: 7px;
    font-size: 20px;
    height: 45px;
    width: 45px;
}

.icon-arrow-down {
    display: block;
}

.class-search .btns {
    margin-top: -6px;
    margin-left: 8px;
}

.class-search {
    position: relative;
    z-index: 2;
}

.btns-admin {
    text-align: center;
    margin-bottom: 65px;
    padding-top: 130px;
}

.btns-admin a {
    margin: 0px 40px;
}

.addon-form {
    cursor: pointer;
}

.addon-form i {
    width: 12px;
}

/* Tabs */

.nav.nav-tabs {
    z-index: 4;
    position: relative;
}

.tabs-below > .nav-tabs,
.tabs-right > .nav-tabs,
.tabs-left > .nav-tabs {
    border-bottom: 0;
}

.tab-content > .tab-pane,
.pill-content > .pill-pane {
    display: none;
}

.tab-content > .active,
.pill-content > .active {
    display: block;
}

.tabs-below > .nav-tabs {
    border-top: 1px solid #222;
}

.tabs-below > .nav-tabs > li {
    margin-top: -1px;
    margin-bottom: 0;
}

.tabs-below > .nav-tabs > li > a {
    -webkit-border-radius: 0 0 4px 4px;
    -moz-border-radius: 0 0 4px 4px;
    border-radius: 0 0 4px 4px;
}

.tabs-below > .nav-tabs > li > a:hover,
.tabs-below > .nav-tabs > li > a:focus {
    border-top-color: #222;
    border-bottom-color: transparent;
}

.tabs-below > .nav-tabs > .active > a,
.tabs-below > .nav-tabs > .active > a:hover,
.tabs-below > .nav-tabs > .active > a:focus {
    border-color: transparent #222 #222 #222;
}

.tabs-left > .nav-tabs > li,
.tabs-right > .nav-tabs > li {
    float: none;
}

.tabs-left > .nav-tabs > li > a,
.tabs-right > .nav-tabs > li > a {
    min-width: 74px;
    margin-right: 0;
    margin-bottom: 3px;
}

.tabs-left > .nav-tabs {
    float: left;
    margin-right: 19px;
    border-right: 1px solid #333;
    padding-right: 1px;
}

.tabs-left > .nav-tabs > li > a {
    margin-right: -1px;
    -webkit-border-radius: 4px 0 0 4px;
    -moz-border-radius: 4px 0 0 4px;
    border-radius: 4px 0 0 4px;
}

.tabs-left > .nav-tabs > li > a:hover,
.tabs-left > .nav-tabs > li > a:focus {
    border-color: #eeeeee #222222 #eeeeee #eeeeee;
}

.tabs-left > .nav-tabs .active > a,
.tabs-left > .nav-tabs .active > a:hover,
.tabs-left > .nav-tabs .active > a:focus {
    border-color: #222 transparent #222 #222;
    *border-right-color: #ffffff;
}

.tabs-right > .nav-tabs {
    float: right;
    margin-left: 19px;
    border-left: 1px solid #222;
}

.tabs-right > .nav-tabs > li > a {
    margin-left: -1px;
    -webkit-border-radius: 0 4px 4px 0;
    -moz-border-radius: 0 4px 4px 0;
    border-radius: 0 4px 4px 0;
}

.tabs-right > .nav-tabs > li > a:hover,
.tabs-right > .nav-tabs > li > a:focus {
    border-color: #eeeeee #eeeeee #eeeeee #222222;
}

.tabs-right > .nav-tabs .active > a,
.tabs-right > .nav-tabs .active > a:hover,
.tabs-right > .nav-tabs .active > a:focus {
    border-color: #222 #222 #222 transparent;
    *border-left-color: #ffffff;
}

.tabs-left {
    position: fixed;
    margin-top: 40px;
    margin-left: -220px;
    z-index: 1;
}

.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
    color: #FFF;
    cursor: default;
    background-color: #333;
    border: 1px solid #ddd;
    border-color: #ddd transparent #ddd #ddd;
    border-bottom-color: transparent;
}

.nav-tabs > li > a {
    color: #222;
}

.tabs-left > .nav-tabs > li > a:hover {
    background-color: #ddd !important;
    border-color: transparent !important;
}

.tabs-left > .nav-tabs > li.active > a:hover {
    background-color: #333 !important;
    border-color: #333 transparent #333 #333 !important;
}

.tabs-left > li {
    margin-bottom: -3px;
}

.nav-tabs li.disabled a {
    pointer-events: none;
}

/* Tabs menu lateral */

.menu-lateral .nav-tabs > li > a {
    color: #FFF;
    background-color: #333;
    border: 1px solid #ddd;
    border-color: #ddd;
    border-bottom-color: transparent;
}

.menu-lateral .nav-tabs > li.active > a,
.menu-lateral .nav-tabs > li.active > a:hover,
.menu-lateral .nav-tabs > li.active > a:focus {
    cursor: default;
    color: #FFF;
    background-color: #111;
    border: 1px solid #ddd;
    border-color: #ddd;
    border-bottom-color: transparent;
}

/* Login */

.site-login {
    z-index: 99;
}

.site-login .login {
    margin-top: -10px;
    margin-left: 45px;
    padding: 40px;
    min-height: 315px;
    border: 1px solid #999;
    border-radius: 10px;
}

.site-login .logo-login {
    margin-top: -30px;
    width: 40%;
}

/* INDEX*/

.view-control {
    position: fixed;
    left: 50px;
    bottom: 7px;
    width: 200px;
    color: #AAA;
    z-index: 100;
}

.view-control span {
    cursor: pointer;
}

.view-control .view-blocks {
    color: #222;
}
 
.view-type-2 {
    display: none;
}

.content.right .col-lg-6 {
    float: right;
}

.icon-list img {
    width: 84px;
    height: 84px;
    margin-top: 5px;
    margin-bottom: 3px;
}

.icon-list a {
    color: inherit;
    display: inline-block;
    transition: color 0.15s ease, transform 0.1s ease;
}

.icon-list a:hover {
    transform: translateY(-5px);
}

/* Menu items */

.row-menu {
    margin: 0;
    margin-right: 10px;
    margin-bottom: 40px;
}

.col-menu {
/*    padding: 0px 20px 0px 20px;*/
}

.panel-menu {
    height: 200px;
    width: 260px;
    border: 5px solid #999;
    background-color: transparent;
    margin-bottom: 0px;
    cursor: pointer;
    overflow: hidden;
    margin-left: -10px;
}

.panel-menu .panel-header {
    position: absolute;
    z-index: 12;
    width: 250px;
    height: 40px;
    margin-top: -20px;
}

.panel-menu .panel-body {
    position: relative;
    z-index: 10;
    padding: 0px;
}

.panel-menu .panel-footer {
    position: relative;
    z-index: 11;
    height: 200px;
    margin-top: 20px;
    padding-top: 55px;
    background-color: rgba(238,238,238, 0.8);
    border: none;
}

.panel-menu h2 {
    width: 100%;
    font-size: 20px;
    background-color: rgba(3,3,3,0.8);
    padding: 12px;
    color: #eee;
}

.panel-menu img {
    height: 200px;
    margin-left: -15px;
    /*filter: grayscale(100%);*/
}

.panel-menu .panel-footer p.descripcion {
    font-size: 14px;
    text-align: left;
    margin-top: 25px;
}

.panel-menu .panel-footer .learn-more {
    position: absolute;
    bottom: 0;
}

.panel-menu .panel-footer .learn-more span {
    width: 185px;
}

.panel-menu:hover h2 {
    background-color: #000;
    color: #FFF;
}

.panel-menu.active:hover .learn-more span:before {
    width: 100%;
}

.panel-menu.active:hover .learn-more span, .panel-menu.active:hover .learn-more i {
    background-color: #000;
    color: #FFF;
}

.panel-menu:hover .panel-footer, .panel-menu.active .panel-footer {
    margin-top: -205px;
}

.panel-menu:hover img, .panel-menu.active img {
    filter: grayscale(80%);
    transform: scale(1.3);
    -webkit-filter: blur(4px);  
}

.panel-menu:hover {
    border-color: transparent;
    box-shadow: 1px 1px 10px 1px #666;
    background-color: transparent;
}

.panel-menu,
.panel-menu h2,
.panel-menu img,
.panel-menu .panel-footer,
.panel-menu:hover,
.panel-menu:hover .panel-footer,
.panel-menu:hover h2,
.panel-menu:hover img
{
    transition-duration: 0.4s;
    transition-timing-function: ease-out;
}

.panel-fit {
    height: 455px;
    width: 100%;
    margin: 0;
}

.panel-fit .panel-header {
    padding-right: 40px;
    width: 100%;
}

.panel-fit .panel-icon {
    height: 660px;
    margin-left: -85px;
    margin-top: -65px;
}

.panel-fit h2 {
    font-size: 24px;
    padding: 20px;
    text-align: center;
}

.panel-fit .panel-footer {
    height: 455px;
    padding-top: 100px;
}

.panel-fit:hover .panel-footer {
    margin-top: -600px;
}

.panel-fit:hover .panel-icon {
    transform: scale(0.8);
}

.personajes-grid {
    margin-top: 125px;
}

.personajes-grid .col {
    margin-bottom: 25px;
}

.panel-personaje {
    width: 260px;
    height: 375px;
    z-index: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel-personaje .cont {
    overflow: hidden;
    min-height: 375px;
}

.panel-personaje img {
    height: 375px;
    z-index: 1;
}

.panel-personaje h2 {
    position: relative;
    z-index: 2;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.1));
    text-align: center;
    color: #FFF;
    margin-top: -57px;
    border-radius: 0 0 4px 4px;
}

.panel-personaje:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Personajes Index */

.step-block .title.sub2 {
    margin-bottom: 15px;
}

.step-block .title + .ref, .step-block .title + .indexador + .ref {
    margin-top: -25px;
    position: relative;
    display: inline;
    white-space: pre-wrap;
    padding: 0 3px;
}

.personajes-index-modern {
    margin-top: 30px;
    margin-bottom: 70px;
}

.personajes-index-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}

.personajes-alert,
.personajes-empty {
    margin-bottom: 28px;
    padding: 22px 24px;

    border-radius: 18px;
    background: rgba(255,255,255,.78);
    border-left: 4px solid #b27a26;

    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.personajes-alert {
    display: flex;
    gap: 16px;
}

.personajes-alert > i {
    margin-top: 3px;
    color: #b27a26;
    font-size: 22px;
}

.personajes-alert p {
    margin: 5px 0 0;
}

.personajes-empty {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.personajes-empty-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2eadc;
    color: #9a6a22;

    font-size: 32px;
}

.personajes-empty h2 {
    margin: 0 0 10px;
    font-weight: 700;
}

.personajes-empty p {
    margin: 0 auto 20px;
    max-width: 560px;
    color: #555;
}

.personajes-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.personaje-card {
    display: flex;
    flex-direction: column;
    min-height: 420px;

    border-radius: 20px;
    overflow: hidden;

    background: rgba(255,255,255,.88);
    border: 1px solid rgba(0,0,0,.06);

    text-decoration: none !important;
    color: #222;

    box-shadow: 0 14px 34px rgba(0,0,0,.08);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.personaje-card:hover {
    color: #222;
    transform: translateY(-6px);
    border-color: rgba(154,106,34,.26);
    box-shadow: 0 24px 52px rgba(0,0,0,.14);
}

.personaje-card-image {
    height: 300px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    background:
        radial-gradient(circle at top, rgba(194,151,77,.20), transparent 56%),
        rgba(245,241,232,.75);

    padding: 18px 18px 0;
}

.personaje-card-image img {
    max-height: 300px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 16px rgba(0,0,0,.22));
}

.personaje-card-info {
    flex: 1;
    padding: 20px;
}

.personaje-card-info h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.personaje-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 12px;
}

.personaje-card-meta span {
    padding: 5px 9px;
    border-radius: 999px;

    background: #f2eadc;
    color: #6d4a18;

    font-size: 12px;
    font-weight: 700;
}

.personaje-card-action {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9a6a22;
    font-weight: 700;
}

.download-sheet {
    font-size: 14px;
}

.personajes-filter-card {
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(0,0,0,.06);
}

.personajes-filter-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: start;
}

.personajes-sort {
    margin: 0 0 22px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.personajes-sort a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2eadc;
    color: #6d4a18;
    font-weight: 700;
}

.personajes-filter-card .form-group {
    margin-bottom: 0 !important;
}

@media (max-width: 900px) {
    .personajes-filter-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .personajes-index-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .personajes-index-actions {
        justify-content: stretch;
    }

    .personajes-index-actions .builder-btn {
        width: 100%;
    }
}

/* Campañas Index */

.campanas-index-modern {
    margin: 30px 0 70px;
}

.campanas-index-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.campanas-index-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #555;
}

.campanas-filter-card {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid rgba(50, 59, 47, .12);
    border-radius: 16px;
    background: rgba(247, 244, 234, .88);
    box-shadow: 0 10px 26px rgba(35, 42, 31, .06);
}

.campanas-filter-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) repeat(3, minmax(135px, .8fr));
    gap: 12px;
    align-items: start;
}

.campanas-filter-card .form-group {
    margin-bottom: 0 !important;
}

.campanas-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.campanas-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
}

.campanas-sort a {
    padding: 6px 11px;
    border-radius: 999px;
    background: #e8eadc;
    color: #3f5436;
    font-weight: 700;
}

.campanas-sort a:hover,
.campanas-sort a:focus-visible {
    background: #d9dfca;
    color: #26351f;
}

.campanas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 26px;
}

.campana-card {
    display: flex;
    flex-direction: column;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid rgba(45, 55, 40, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    color: #273026;
    text-decoration: none !important;
    box-shadow: 0 14px 32px rgba(35, 42, 31, .09);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.campana-card:hover,
.campana-card:focus-visible {
    color: #273026;
    transform: translateY(-5px);
    border-color: rgba(76, 103, 62, .42);
    box-shadow: 0 22px 44px rgba(35, 42, 31, .16);
}

.campana-card:focus-visible {
    outline: 3px solid #6d874f;
    outline-offset: 4px;
}

.campana-card-cover {
    position: relative;
    min-height: 170px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(221, 202, 151, .48) 0 2px, transparent 3px),
        linear-gradient(135deg, rgba(36, 58, 44, .94), rgba(94, 83, 50, .86)),
        #394b3c;
    background-size: 28px 28px, auto, auto;
}

.campana-card-cover::before,
.campana-card-cover::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(241, 226, 184, .18);
    border-radius: 50%;
}

.campana-card-cover::before {
    left: -60px;
    bottom: -95px;
}

.campana-card-cover::after {
    right: -65px;
    top: -95px;
}

.campana-card-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campana-card-emblem {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 244, 210, .35);
    border-radius: 50%;
    background: rgba(20, 30, 23, .26);
    color: #f1dfad;
    font-size: 36px;
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .04);
}

.campana-role-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.campana-role-gm { background: #9a6928; }
.campana-role-jugador { background: #456b55; }

.campana-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.campana-card-body h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 750;
}

.campana-card-gm {
    margin: 9px 0 0;
    color: #596257;
    font-size: 14px;
}

.campana-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.campana-card-chips span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf0e5;
    color: #405138;
    font-size: 12px;
    font-weight: 700;
}

.campana-card-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 17px;
    padding-top: 13px;
    border-top: 1px solid rgba(45, 55, 40, .1);
    color: #596257;
    font-size: 13px;
}

.campana-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: #4d683e;
    font-weight: 800;
}

/* Campaña View: acceso principal a la sala */

.campaign-play-launch {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 22px;
}

.campaign-play-launch-button {
    gap: 8px;
}

.campaign-play-launch-badge {
    margin-left: 2px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 235, 190, .22);
    border-radius: 999px;
    background: rgba(46, 27, 5, .42);
    color: #ffe3a3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 1050px) {
    .campanas-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .campanas-index-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .campanas-index-heading .builder-btn,
    .campanas-filter-actions .builder-btn {
        width: 100%;
    }

    .campanas-filter-grid { grid-template-columns: 1fr; }
    .campanas-filter-actions { flex-direction: column; }
    .campanas-grid { grid-template-columns: 1fr; }
}

/* LISTAS */

.row-list {
    border: 1px solid #aaa;
    border-radius: 20px;
    margin-top: 20px;
    margin-left: 0px;
    margin-right: 0px;
    padding: 0px;
    min-height: 200px;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    background-color: rgba(255, 255, 255, 0.8);
}

.row-list h3 {
    background-color: #222;
    color: #FFF;
    padding: 10px;
    margin: -20px -15px 15px -15px;
    border-radius: 10px 10px 0px 0px;
    border-bottom: 2px solid #333;
}

.row-list h3 a {
    color: inherit;
}

.row-list .num {
    margin-top: -24px;
    margin-right: -20px;
    background-color: #FFF;
    color: #222;
    border-radius: 0px 20px 0px 4px;
    padding: 5px;
}

.row-list .col-lg-12 {
    min-height: 200px;
}

.row-list .botones {
    position: absolute;
    right: 9px;
    bottom: 1px;
    margin-top: 10px;
}

.row-list:hover {
    transform: scale(1.0333);
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    box-shadow: 0 8px 10px 0 rgba(0,0,0,0.2),0 5px 5px 0 rgba(0,0,0,0.14),0 4px 2px -1px rgba(0,0,0,0.12);
}

.row-list .sub-item {
    margin-left: 15px !important;
}

/* Panel de item (no colapsado) */

.panel-tipo .heading {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    padding: 20px 0px 0px 50px;
    cursor: pointer;
    height: 100px;
    background-color: #222;
    color: #FFF;
    transition-property: height, padding, margin, background-size;
    background-image: url('../imagenes/botones/corner2.png');
    background-repeat: no-repeat;
    background-position: 0px;
    background-size: 8%;
}

.panel-tipo span {
    font-size: 40px;
    font-weight: 700;
    z-index: 99;
    font-family: 'dungeon';
}

.panel-tipo img {
    position: absolute;
    top: -10px;
    right: 30px;
    opacity: 0.2;
    transition-property: opacity;
    filter: grayscale(100%);
    z-index: 98;
}

.panel-tipo .heading::after {
    position: absolute;
    top: 45px;
    right: 20px;
    content: " ";
    border-color: #FFF rgba(33, 33, 33, 0) rgba(33, 33, 33, 0);
    border-width: 16px;
    border-style: solid;
    transition-property: transform, top;
    transform-origin: 50% 50% 0px;
}

/* Panel de item (colapsado) */

.item-collapse .container::before {
    border-style: solid;
    border-color: #222 rgba(33, 33, 33, 0) rgba(33, 33, 33, 0);
    border-width: 30px;
    margin: -10px 0px -60px 50px;
}

.panel-tipo .panel-open {
    height: 60px;
    padding-top: 18px;
    background-size: 4.7%;
    padding-top: 3px;
    padding-left: 30px;
}

.panel-tipo .panel-open img {
    height: auto;
    position: absolute;
    opacity: 1;
    filter: grayscale(0%);
    z-index: -1;
}

.panel-tipo .panel-open::after {
    top: 5px;
    transform: rotate(-180deg);
    border-color: #999 rgba(33, 33, 33, 0) rgba(33, 33, 33, 0);
}

.panel-tipo .heading, .panel-tipo .heading::after, .panel-tipo img {
    transition-timing-function: ease-in-out;
    transition-duration: 0.3s;
}

/* Detalle del item */

.item-collapse .container .row {
    margin-right: 65px;
    padding: 0px 81px;
}

.item-collapse .container .row div {
    margin-top: 40px;
}

.item-collapse .container .container-img {
    filter: grayscale(100%);
    opacity: 0;
    transition-timing-function: ease-in-out;
    transition-duration: 0.9s;
    padding: 0px;
    padding-top: 35px;
}

.item-collapse .container .container-img  img {
    max-width: 100%;
}

.in .container-img  {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

.container-info  h3 {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Raza/View */

.lista-hechizos-search {
    height: 221px;
    position: relative;
    overflow-y: scroll;
    padding: 20px 50px 50px 50px;
}


/* Chat/index */

/* Area de chats */

.chat .area-chat {
    position: fixed;
    display: none;
    right: 10px;
    top: 60px;
    width: 30%;
    height: 91%;
    background-color: rgba(34, 34, 34, 0.8);
    padding: 50px 0px 25px 0px;
    border-radius: 20px 20px 0px 0px;
    border: 1px solid #FFF;
}

.chat .titulos {
    color: #EEE !important;
    cursor: pointer;
    border-bottom: 1px solid rgba(201, 169, 110, 0.35);
    margin-top: -52px;
    padding-top: 0px;
    margin-bottom: 10px;
}

.chat .enviar {
    margin: 20px;
    margin-top: 30px;
}

.chat .mensajes {
    margin-top: -10px;
    overflow-y: scroll;
    overflow-x: hidden;
    position: absolute;
    height: 80%;
    width: 100%;
    padding: 5px 80px 35px 80px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.35);
}

.chat .mensajes .fecha {
    text-align: center;
    color: #FFF;
    margin-top: 10px;
}

.chat .mensaje {
    border-radius: 10px;
    background-color: #FFF;
    margin: 2px;
    margin-bottom: 5px;
    padding: 10px 3px 1px 10px;
}

.chat .area-icon {
    position: absolute;
    width: 60px;
}

.chat .area-icon p {
    color: #eee;
}

.chat .p-left {
    left: 5px;
}

.chat .p-right {
    right: 5px;
}

.chat .area-icon .icon {
    border-radius: 30px;
    width: 50px;
    height: 50px;
}

.chat .comandos p {
    color: #eee !important;
    font-style: italic;
    margin-top: 15px;
}

.chat .comandos .mensaje {
    border-radius: 0px;
    text-align: center;
    background-color: #222;
    margin: -5px -30px 15px -30px;
}

.chat .titulos {
    text-transform: uppercase;
    font-size: 15px;
    color: #eee !important;
}

#chat2 {
    display: block;
    background-color: #222;
    position: fixed;
    bottom: -25px;
    right: 10px;
    width: 30%;
    height: 46px;
    z-index: 100;
    border: none;
    border-radius: 20px 20px 0px 0px;
    border: 1px solid #FFF;
}

#chat2 h5 {
    margin-top: 8px;
}

/* Carousel index */

#carousel {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 50px;
    overflow: hidden;
    height: calc(100vh - 50px);
}

#carousel .carousel-inner {
    overflow: visible;
    margin: auto;
    width: 90%;
}

.space {
    height: calc(100vh - 50px);
}

.space-2 {
    height: 50vh;
}

#carousel .carousel-inner .item img {
    width: 100%;
}

.carousel-caption {
    padding-bottom: 0;
    bottom: 0;
    top: 80px;
    font: 1.3em 'Roboto', sans-serif;
    text-shadow: none;
    left: 15%;
    right: 15%;
    color: #CCC;
    background-color: rgba(2,2,2,0.8);
    height: calc(88vh - 80px);
    padding: 0px 40px;
    text-align: left;
}

.carousel-caption h3 {
    padding: 10px;
}

.carousel-indicators .active {
    background-color: #222;
}

.carousel-indicators li {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 8px;
    width: 0;
    border-radius: 50%;
    background-color: #b22327;
    border: 2px solid #b22327;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.carousel-control:hover {
    color: #b22327;
}

.carousel-indicators {
    bottom: -5px;
}

#carouselButtons {
    position: absolute;
    bottom: 13px;
    right: 13px;
}


/* EDIT */

/*.change, .change-img {
    margin-top: -30px;
    margin-right: 5px;
    border: 1px solid #222;
    border-radius: 25px;
    height: 25px;
    width: 25px;
    text-align: center;
    position: relative;
    z-index: 99;
}

.change:hover, .change-img:hover {
    cursor: pointer;
}*/


/* GENERAL */

.breadcrumb {
    background-color: transparent;
    font-size: 1.2rem;
    position: absolute;
    margin-top: 15px;
    z-index: 99;
}

.index, .view {
    min-height: 72vh;
    margin-bottom: 175px;
}

.content {
    min-height: 85vh;
}

.right div:not(.collapse) {
    float: right;
}

.right div.left {
    float: left;
}

.content .content-img {
    margin-top: 6px;
    margin-bottom: 10px;
    width: 100%;
}

#info {
    /*margin-bottom: 100px;*/
}

.close-info {
    text-align: right;
    cursor: pointer;
    margin-top: -40px;
    margin-bottom: 20px;
}

.close-info span {
    font-size: 16px;
    opacity: 0.6;
}

.tooltip {
    /*min-width: 260px;*/
}

.tooltip.top .tooltip-arrow {
    bottom: 1px;
}

.tooltip.left .tooltip-arrow {
    right: 1px;
}

.tooltip-inner p {
    font-size: 12px;
    color: #fff;
    text-align: left;
}

.summary {
    margin-bottom: 0;
}

.pagination {
    margin-top: 60px;
}

.box-path {
    border: 5px solid #DDD;
    padding: 20px;
    border-radius: 10px;
    /*background: rgba(2, 2, 2, 0.8);*/
    color: #222;
    background: url(../imagenes/backgrounds/background.jpg) 0 0 repeat;
    background-size: auto auto;
    margin: 0px !important;
}

.box-path .alert-icon {
    font-size: 80px;
}

.box-path p {
    margin: 0;
    color: inherit;
}

.olvido {
    margin-top: 30px !important;
}

.index-site .has-error {
    margin-top: 10px;
}

.busqueda {
    background: none;
    background-color: #EEEE00 !important;
}

#mybtn1 {
    background-image: url('../imagenes/botones/hover.png');
    position: absolute;
    top: -1000px;
    left: -1000px;
}

#mybtn2 {
    background-image: url('../imagenes/botones/push.png');
    position: absolute;
    top: -1000px;
    left: -1000px;
}

#mybtn3 {
    background-image: url('../imagenes/botones/lanzar2.png');
    position: absolute;
    top: -1000px;
    left: -1000px;
}

/* switch de vista completa/compacta en index */

.view-switch {
    float: right;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -45px;
    margin-right: 5px;
    position: relative;
    z-index: 3;
}

.view-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #f8f9fa;
    color: #555;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid #ddd;
}

.view-switch a:hover {
    background-color: #e9ecef;
    color: #000;
}

.view-switch a.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

.view-switch a i {
    pointer-events: none;
}

.per-page-form {
    position: relative;
    padding-right: 12px;
    margin-right: 12px;
}

.per-page-form::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    width: 1px;
    height: 24px;
    background-color: #ccc;
}

.item-list-simple-wrapper {
    column-count: 2;
    column-gap: 40px;
}

@media (min-width: 1200px) {
    .item-list-simple-wrapper {
        column-count: 3;
    }
}

.item-list-simple a {
    display: inline-block;
    padding: 3px 0;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.1s ease;
    font-size: 1.6rem;
}

.item-list-simple span a {
    font-size: inherit;
}

.item-list-simple a:hover {
    transform: translateX(2px);
}

.per-page-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.per-page-form label {
    font-size: 14px;
    color: #444;
    margin: 0;
}

.per-page-form select {
    height: 32px;
    font-size: 14px;
    padding: 0 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f8f9fa;
    color: #333;
    outline: none;
    transition: all 0.2s ease;
}

.per-page-form select:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.per-page-form span {
    font-size: 13px;
    color: #666;
}

.referencia {
    margin-top: 0px;
    margin-bottom: 50px;
}

strong.sub {
    font-weight: 600;
    font-style: italic;
}

.nota-alert {
    text-align: left;
}

/* BOTONES */

.btn-path {
    padding: 16px 30px;
    border: 1px solid #d8ba7c;
    max-height: 55px;
    line-height: 20px !important;
    text-align: left;
    background-color: rgba(3, 3, 3, 0.85);
    color: #EEEEEE;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(201, 169, 110, 0.24);
    transition: all 0.2s ease;
    position: relative;
    font: 1.3em 'Roboto', sans-serif;
    margin-left: 55px;
    min-width: 250px;
}

.btn-path::before {
    content: "\f054";
    font-family: var(--fa-style-family, "Font Awesome 6 Free");
    font-weight: var(--fa-style,900);
    position: absolute;
    left: -55px;
    top: -1px;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: rgba(3, 3, 3, 0.85);
    color: #EEEEEE;
    box-shadow: 0 10px 22px rgba(201, 169, 110, 0.24);
    border: 1px solid rgba(201, 169, 110, 0.55);
}

.btn-path.btn-path-sm {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 100px;
    line-height: 10px !important;
}

.btn-path.btn-path-sm::before {
    font-size: 14px;
    left: -35px;
    padding: 8px;
}

.btn-path::after {
    content: '';
    position: absolute;
    top: 95%;
    left: 0px;
    width: 0px;
    height: 5%;
    background-color: #d8ba7c;
    transition: all 0.4s ease;
    transition-delay: 0.2s;
}

.btn-path:not([disabled]):not(.disabled):hover::after {
    width: 100%;
}

.btn-path:not([disabled]):not(.disabled):hover,
.btn-path:not([disabled]):not(.disabled):focus,
.btn-path:not([disabled]):not(.disabled):focus::before,
.btn-path:not([disabled]):not(.disabled):hover::before {
    background-color: #000000;
    border-color: rgba(201, 169, 110, 0.75);
    box-shadow: 0 14px 28px rgba(201, 169, 110, 0.32);
    color: #EEEEEE;
}

.btn-path:not([disabled]):not(.disabled):focus::before,
.btn-path:not([disabled]):not(.disabled):hover::before {
    transform: translateX(5px);
}

.btn-path.btn-path-sm:not([disabled]):not(.disabled):focus::before,
.btn-path.btn-path-sm:not([disabled]):not(.disabled):hover::before {
    transform: translateX(3px);
}

.btn-path i:not(.fa-pulse) {
    margin-right: 5px;
}

.btn-path.btn-path-sm i:not(.fa-pulse) {
    font-size: 12px;
}

.btn-path.disabled,
.btn-path[disabled],
.btn-path.disabled::before,
.btn-path[disabled]::before {
    background: rgba(13, 15, 19, 0.18);
    border-color: rgba(13, 15, 19, 0.12);
    color: #9a9a9a;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.btn-control, .pagination li a, .pagination li span {
    display: inline-block;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border: none !important;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    background-image: url('../imagenes/botones/2.png');
    background-size: 45px;
    background-color: transparent !important;
    background-repeat: no-repeat;
    color: #222;
    background-position: 50% 50%;
    margin: 1px;
}

.icon-arrow-up {
    display: none;
}

.card-badge-new {
    position: absolute !important;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #d4a43c, #b7831f);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.builder-btn + .card-badge-new {
    position: relative !important;
    top: -25px;
    left: -45px;
}

.btn-control.btn-potion {
    width: 50px;
    height: 50px;
    padding: 18px;
    background-image: url('../imagenes/botones/potion.png');
    background-size: 50px;
    color: #FFF;
}

.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
    color: #10AE10;
}

.btn-control:hover,
.btn-control:focus,
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
    transform: scale(1.1);
    color: #222;
}

p.learn-more {
    width: -moz-fit-content;
}

p.learn-more span {
    padding: 0px 10px;
    font-weight: 700;
    font-size: 1.6rem;
    text-decoration: none;   
    font-family: inherit;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin-bottom: 5px;
    border: 0;
}

p.learn-more span:before {
    content:'';
    position: absolute;
    top: 85%;
    left: 0px;
    width: 0px;
    height: 15%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

p.learn-more:hover span:before {
    width: 100%;
}

p.learn-more i.fa.fa-chevron-right {
    padding: 0px 10px;
    line-height: 1.3;
}

.panel-fit p.learn-more i {
}

p.learn-more span, p.learn-more i.fa.fa-chevron-right {
    color: #EEE;
    background-color: rgba(3,3,3,0.8);
    transition-property: color, background-color;
    transition-duration: .25s;
    transition-timing-function: ease-in-out;
}

p.learn-more:hover span, p.learn-more:hover i.fa.fa-chevron-right {
    background-color: #000;
    color: #FFF;
}

p.learn-more.learn-lg {
    /* width: initial; */
    line-height: 51px;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

p.learn-more.learn-lg a {
    width: 100%;
}

p.learn-more.learn-lg span {
    /* width: 85%; */
    /* vertical-align: middle; */
    /* line-height: inherit; */
    /* padding-bottom: 1px; */
    width: calc(100% - 45px);
    margin-top: 1px;
}

p.learn-more.learn-lg i.fa.fa-chevron-right {
    /* line-height: inherit; */
    /* padding-left: 15px; */
    /* padding-right: 15px; */
    /* padding-top: 1px; */
    line-height: 50px;
    /* margin-top: 1px; */
}

p.learn-more.learn-lg span::before {
}

p.learn-more.learn-lg span:hover:before {
    width: 100%;
}

/*.btn-dado {
    background-image: url('../imagenes/botones/lanzar.png');
    height: 60px;
    width: 100px;
    background-size: 100px;
}

.btn-dado:hover {
    background-image: url('../imagenes/botones/lanzar.png');
}

.btn-dado.btn-dado-active {
    background-image: url('../imagenes/botones/lanzar2.png');
}*/

.dado-count {
    padding: 2px;
    margin-left: 1px;
    font-size: 12px;
    width: 10px;
    position: absolute;
    margin-left: -3px;
}

/* TITULOS */

@font-face {
  font-family: 'dungeon';
  src: url('dungeon.ttf') format('truetype');
}

@font-face {
  font-family: 'HechoAMano';
  src: url('HechoAMano-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Pencilant';
  src: url('Pencilant.ttf') format('truetype');
}

.title {
    font-size: 4rem;
    font-weight: 300;
    text-transform: uppercase;
    color: #222;
    text-align: center;
    position: relative;
    margin: 0px;
    padding: 0 30px;
    clear: both;
    font-family: "Open Sans", sans-serif;
}

.title.nocap {
    text-transform: none;
}

.title .fas.fa-external-link-alt {
    font-size: 18px;
}

.title.sub1 .fas.fa-external-link-alt,
.title.sub2 .fas.fa-external-link-alt  {
    font-size: 14px;
}

/*.title::before {
    content: '';
    height: 1px;
    width: 100%;
    background: #bdbdbd;
    position: absolute;
    z-index: 0;
    left: 0;
    top: 50%;
    margin-top: 7.5px;
}*/

.title {
    overflow: hidden;
}

.title::after, .title::before {
    position: absolute;
    top: 51%;
    overflow: hidden;
    width: 100%;
    height: 1px;
    content: '\a0';
    margin-top: 7.5px;
    background: linear-gradient(
        to right,
        rgba(154,106,34,.45),
        rgba(154,106,34,0)
    );
}

.title::before {
    background: linear-gradient(
        to left,
        rgba(154,106,34,.45),
        rgba(154,106,34,0)
    );
}

h1.title:not(.sub1)::after, h1.title:not(.sub1)::before {
    margin-top: 0px;
}

.title:before {
    margin-left: -50%;
    text-align: right;
    width: 50%;
}

.title[data-toggle="collapse"] {
  cursor: pointer;
}

.title.no-line::before, .title.no-line::after, .title.sub0::before, .title.sub0::after {
    height: 0;
}

.title.white {
    color: #FFFFFF !important;
}

.title > span {
    /*background: url(../imagenes/backgrounds/background.jpg) 0 0 repeat;
    background-size: auto auto;*/
    position: relative;
    display: inline;
    white-space: pre-wrap;
    padding: 5px 10px;
    vertical-align: middle;
    z-index: 4;
}

.title span span.po {
    position: initial;
    display: initial;
    padding: 0;
    white-space: initial;
    vertical-align: initial;
}

.title.no-bg span {
    background: none !important;
}

.title.text-center {
    text-align: center !important;
}

.title.no-margin {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.title.no-padding {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.title.no-ident {
    text-indent: 0px !important;
    margin-left: 0px !important;
}

.title.inverse span {
    color: #FFF;
    background: none;
}

.title .sub-data {
    font-size: 1.5rem;
    margin-left: -5px;
    padding: 11px 11px 0px 0px;
}

.title .title-item {
    padding: 0px 10px 0px 20px;
    margin: -5px;
}

.sub-icon {
    width: 20px;
}

.title span .sub-icon {
    margin-left: -20px;
}

.h1.title {
    margin-top: 50px;
    margin-bottom: 40px;
}

.title.h2, .title.h3, .title.h4, .title.sub1, .title.sub1-1, .title.sub2 {
    text-align: left;
    font-size: 2.5rem;
    padding-left: 0;
    margin-left: -10px;
    padding-right: 0px;
}

.title.sub1-1 {
    font-size: 2.25rem;
}

.h3.title, .sub2.title {
    font-size: 2rem;
}

.h3.title, .sub2.sub3.title {
    font-size: 2rem;
}

.h4.title {
    font-size: 1.6rem;
    text-indent: -4px;
    padding: 0;
}

.h4 .fa {
    vertical-align: middle;
}

.title.h4::before {
    height: 0;
}

h1.title {
    margin-bottom: 30px;
    margin-top: 60px;
}

.title.h3, .title.h2, .title.sub2, .title.sub1, .title.h4, .title.sub1-1{
    margin-bottom: 5px;
    margin-bottom: 30px;
    padding-top: 15px;
}

.search-index .title.sub2 {
    margin-bottom: 10px;
}

.search-limit-warning {
    padding: 10px 14px;
    background: #fff3cd;
    border: 1px solid #e5c978;
    border-radius: 4px;
    color: #6b5300;
}

.title.h3, .title.sub2, .title.h4 {
    margin-left: 10px;
}

h3.h3 + div,
h3.h3 + .indexador + div,
.title.sub2 + div,
.title.sub2 + .indexador + div,
.title.sub2 + p + div,
.title.sub2 + .indexador + p,
.title.sub2 + .indexador + p + div,
.title.sub2 + .ref + .indexador + div,
.title.sub2 + .ref + .indexador + p,
.title.sub2 + .ref + div,
.title.sub2 + .ref + p,
.title.h4 + div,
h3.title.sub2 + p,
.title.sub2 + h5 + .ref + .indexador + div {
    margin-left: 27.5px;
}

.title.sub2.sub3 + div,
.title.sub2.sub3 + .indexador + div,
.title.sub2.sub3 + p + div,
.title.sub2.sub3 + .indexador + p,
.title.sub2.sub3 + .indexador + p + div,
.title.sub2.sub3 + .ref + .indexador + div,
.title.sub2.sub3 + .ref + .indexador + p,
.title.sub2.sub3 + .ref + div,
.title.sub2.sub3 + .ref + p,
h3.title.sub2.sub3 + p,
.title.sub2.sub3 + h5 + .ref + .indexador + div {
    margin-left: 56.5px;
}

.margin-left-sub2 {
    margin-left: 20px !important;
}

.title.sub2.sub3 + div, .title.sub2.sub3 + .indexador + div {
    /*margin-left: 30px;*/
}

.title.sub1-1 {
    margin-left: 5px;
}

.title.sub1-1 + div, .title.sub1-1 + .indexador + div {
    margin-left: 15px;
}

.title + .ref, .title + .indexador + .ref {
    margin-top: -42px;
    position: relative;
    display: inline;
    white-space: pre-wrap;
    padding: 0 3px;
}

.title + .ref + .decisiones, .title + .indexador + .ref + .decisiones {
    position: absolute;
    right: 0px;
    top: 10px;
}

.title + .ref + .decisiones span, .title + .indexador + .ref + .decisiones span {
    margin-left: 10px;
}

.summary .summary {
    padding: 20px 0;
}

.summary .summary.summary-simpple-wrapper {
    padding-top: 0px;
}

div.margin-left {
    margin-left: 40px !important;
}

.title sub, .title sup {
    font-size: 90%;
}

.title.sub0 {
    text-align: center;
    margin: 40px 0 20px;
    margin-top: -25px;
    text-indent: 0;
    padding: 11px 30px;
    z-index: 3;
}

.title.sub0::before {
    height: 0;
}

.title.sub-icons {
    margin-top: -35px !important;
    font-size: 2rem;
}

.title.sub-icons span {
    padding-top: 0;
    padding: 0;
    margin: 0;
}

.title.sub-icons span .sub-icon {
    margin-left: 0px;
}

.title b.badge {
    line-height: 16px;
    margin-bottom: 4px;
}

/* Titulos collapse */

.title[aria-expanded] {
    margin-left: -30px;
}

.title.sub2[aria-expanded] {
    margin-left: 0px;
}

.title.sub2.sub3[aria-expanded] {
    margin-left: 30px;
}

.title.h4[aria-expanded] {
    margin-left: 0px;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-weight: normal;
    line-height: 1; /* fuerza la altura justa del ícono */
    transform: translateY(1px); /* pequeño ajuste visual */
}

.title[aria-expanded] .icon {
    transition: transform 0.3s ease;
    font-size: 60%;
    margin-left: 10px;
}

.title[aria-expanded="true"] .icon {
    transform: rotate(90deg);
}

.site-index .content h3.title {
    margin-bottom: 15px;
    margin-top: 5px;
}

.modal.des-modal .title.sub1 {
    margin: -30px 0px;
}

.title span.classname {
    font-size: 14px;
    padding: 0;
}

.modal.des-modal .modal-header {
    border: none;
    margin-bottom: 30px;
    margin-top: -20px;
}

.modal.des-modal .modal-header .close {
    margin-top: 5px;
}

.conjuro {
    font-style: italic;
}

.italic {
    font-style: italic;
}

.ppt,
.po,
.pp,
.pc {
    margin-right: 24px;
    position: relative;
}

.ppt:after,
.po:after,
.pp:after,
.pc:after {
    content: " ";
    position: absolute;
    background-image: url('../imagenes/iconos/monedas/ppt.png');
    background-repeat: no-repeat;
    background-size: 70%;
    width: 32px;
    height: 32px;
    right: -33px;
    top: -2px;
}

.po:after {
    background-image: url('../imagenes/iconos/monedas/po.png');
}

.pp:after {
    background-image: url('../imagenes/iconos/monedas/pp.png');
}

.pc:after {
    background-image: url('../imagenes/iconos/monedas/pc.png');
}

.dados {
    margin-right: 24px;
}

.dados:after {
    content: " ";
    position: absolute;
    background-image: url('../imagenes/iconos/dados/d20.png');
    background-repeat: no-repeat;
    background-size: 70%;
    width: 32px;
    height: 32px;
}

.d2:after {
    background-image: url('../imagenes/iconos/dados/d2.png');
}

.d3:after {
    background-image: url('../imagenes/iconos/dados/d4.png');
}

.d4:after {
    background-image: url('../imagenes/iconos/dados/d4.png');
}

.d6:after {
    background-image: url('../imagenes/iconos/dados/d6.png');
}

.d8:after {
    background-image: url('../imagenes/iconos/dados/d8.png');
}

.d10:after {
    background-image: url('../imagenes/iconos/dados/d10.png');
}

.d12:after {
    background-image: url('../imagenes/iconos/dados/d12.png');
}

.dice-throw {
    background-image: url('../imagenes/iconos/dados/d20.png') !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    width: 30px;
    height: 30px;
    display: block !important;
    float: left;
    cursor: pointer;
}

.dice-throw.d2 {
    background-image: url('../imagenes/iconos/dados/d2.png') !important;
}

.dice-throw.d3 {
    background-image: url('../imagenes/iconos/dados/d4.png') !important;
}

.dice-throw.d4 {
    background-image: url('../imagenes/iconos/dados/d4.png') !important;
}

.dice-throw.d6 {
    background-image: url('../imagenes/iconos/dados/d6.png') !important;
}

.dice-throw.d8 {
    background-image: url('../imagenes/iconos/dados/d8.png') !important;
}

.dice-throw.d10 {
    background-image: url('../imagenes/iconos/dados/d10.png') !important;
}

.dice-throw.d12 {
    background-image: url('../imagenes/iconos/dados/d12.png') !important;
}

.dice-throw:hover {
    -webkit-animation: 2s roll infinite;
    -moz-animation: 2s roll infinite;
}

@keyframes balance {
    33% {
        -moz-transform: scale(0.9) rotate(-187deg);
    }

    66% {
        -moz-transform: scale(1.1) rotate(43deg);
    }
}

@keyframes roll {
    0% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
    }
}

/*@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-3px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(3px, 0, 0);
    }
}*/

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.dice-modal .fail::after {
    content: "¡Fallo Crítico!";
    position: absolute;
    top: 20px;
    left: 72px;
    z-index: 999;
    font-family: Arial,sans-serif;
    /* -webkit-transform: rotate(-20deg); */
    /* -moz-transform: rotate(-20deg); */
    /* -ms-transform: rotate(-20deg); */
    /* -o-transform: rotate(-20deg); */
    transform: rotate(-12deg);
    font-size: 40px;
    color: #c00;
    /*background: #c00;*/
    border: solid 4px #c00;
    padding: 5px;
    border-radius: 5px;
    zoom: 1;
    /* filter: alpha(opacity=20); */
    /* opacity: 0.2; */
    /*-webkit-text-shadow: 0 0 2px #c00;*/
    /*text-shadow: 0 0 2px #c00;*/
    box-shadow: 0 0 2px #c00;
    -webkit-animation: 0.3s stamp 1;
    -moz-animation: 0.3s stamp 1;
    animation: 0.3s stamp 1;
    animation-delay: 0.8s;
    animation-fill-mode: both;
}

@keyframes stamp {
    0%{
        opacity: 0;
    }
    10%{
        opacity: .50;
        transform-origin: 50% 50%;
        transform: rotate(-2deg) scale(10);
        transition: all .3s cubic-bezier(0.6, 0.04, 0.98, 0.335);
    }
    100%{
        opacity: 1;
        transform: rotate(-15deg) scale(1);
    }
}

.modal-backdrop.in {
    opacity: 0.7;
}


/* FIREWORKS */

.pyro {
    height: 100vh;
    position: fixed;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
}

.pyro > .before,
.pyro > .after {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    box-shadow: 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff;
    -moz-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    -webkit-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    -o-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    -ms-animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
    animation: 1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards;
}

.pyro > .after {
    -moz-animation-delay: 1.25s, 1.25s, 1.25s;
    -webkit-animation-delay: 1.25s, 1.25s, 1.25s;
    -o-animation-delay: 1.25s, 1.25s, 1.25s;
    -ms-animation-delay: 1.25s, 1.25s, 1.25s;
    animation-delay: 1.25s, 1.25s, 1.25s;
    -moz-animation-duration: 1.25s, 1.25s, 6.25s;
    -webkit-animation-duration: 1.25s, 1.25s, 6.25s;
    -o-animation-duration: 1.25s, 1.25s, 6.25s;
    -ms-animation-duration: 1.25s, 1.25s, 6.25s;
    animation-duration: 1.25s, 1.25s, 6.25s;
}

@-webkit-keyframes bang {
    to {
        box-shadow: 99px -339.6666666667px #ffb300, -33px -50.6666666667px #0066ff, -119px -378.6666666667px #ff002f, -45px 56.3333333333px #ff2200, 82px -164.6666666667px #2bff00, 124px 0.3333333333px #00ffd9, 64px -212.6666666667px #2200ff, -1px -94.6666666667px #4dff00, 198px -383.6666666667px #ff00bf, -201px -120.6666666667px #c800ff, 242px 31.3333333333px #2bff00, -217px -146.6666666667px #0055ff, 104px 70.3333333333px #00eeff, -125px 21.3333333333px #00ff73, -120px -306.6666666667px #ff0059, 231px 74.3333333333px #ff00bb, -115px -275.6666666667px #ffee00, 70px -248.6666666667px #ff00b7, -61px -60.6666666667px #ff2600, 130px -93.6666666667px #26ff00, -64px -143.6666666667px #40ff00, 228px -261.6666666667px #00d5ff, 76px -33.6666666667px magenta, 164px -326.6666666667px #c4ff00, -79px -29.6666666667px #c4ff00, 63px 59.3333333333px #0062ff, 16px -366.6666666667px #c4ff00, 91px -310.6666666667px #006aff, -65px -234.6666666667px #ff2200, -164px -245.6666666667px #4000ff, 208px 38.3333333333px #eaff00, -59px -152.6666666667px #4800ff, 51px -104.6666666667px #0009ff, -53px -26.6666666667px #ff006f, -186px 55.3333333333px #ffe100, 7px -6.6666666667px #00ffd5, -102px 13.3333333333px #00ffe6, -100px -348.6666666667px #73ff00, 129px -191.6666666667px #ff0088, 5px -119.6666666667px #04ff00, -161px -12.6666666667px #ff0900, -23px -253.6666666667px #0099ff, -109px -100.6666666667px #fbff00, -167px -313.6666666667px #51ff00, 209px 80.3333333333px #c8ff00, 26px 29.3333333333px #2bff00, 201px -12.6666666667px #ff0062, 11px -281.6666666667px #00ff80, 5px -315.6666666667px #00ff66, 71px -150.6666666667px #ff00ae, -209px -50.6666666667px #00fbff;
    }
}

@-moz-keyframes bang {
    to {
        box-shadow: 99px -339.6666666667px #ffb300, -33px -50.6666666667px #0066ff, -119px -378.6666666667px #ff002f, -45px 56.3333333333px #ff2200, 82px -164.6666666667px #2bff00, 124px 0.3333333333px #00ffd9, 64px -212.6666666667px #2200ff, -1px -94.6666666667px #4dff00, 198px -383.6666666667px #ff00bf, -201px -120.6666666667px #c800ff, 242px 31.3333333333px #2bff00, -217px -146.6666666667px #0055ff, 104px 70.3333333333px #00eeff, -125px 21.3333333333px #00ff73, -120px -306.6666666667px #ff0059, 231px 74.3333333333px #ff00bb, -115px -275.6666666667px #ffee00, 70px -248.6666666667px #ff00b7, -61px -60.6666666667px #ff2600, 130px -93.6666666667px #26ff00, -64px -143.6666666667px #40ff00, 228px -261.6666666667px #00d5ff, 76px -33.6666666667px magenta, 164px -326.6666666667px #c4ff00, -79px -29.6666666667px #c4ff00, 63px 59.3333333333px #0062ff, 16px -366.6666666667px #c4ff00, 91px -310.6666666667px #006aff, -65px -234.6666666667px #ff2200, -164px -245.6666666667px #4000ff, 208px 38.3333333333px #eaff00, -59px -152.6666666667px #4800ff, 51px -104.6666666667px #0009ff, -53px -26.6666666667px #ff006f, -186px 55.3333333333px #ffe100, 7px -6.6666666667px #00ffd5, -102px 13.3333333333px #00ffe6, -100px -348.6666666667px #73ff00, 129px -191.6666666667px #ff0088, 5px -119.6666666667px #04ff00, -161px -12.6666666667px #ff0900, -23px -253.6666666667px #0099ff, -109px -100.6666666667px #fbff00, -167px -313.6666666667px #51ff00, 209px 80.3333333333px #c8ff00, 26px 29.3333333333px #2bff00, 201px -12.6666666667px #ff0062, 11px -281.6666666667px #00ff80, 5px -315.6666666667px #00ff66, 71px -150.6666666667px #ff00ae, -209px -50.6666666667px #00fbff;
    }
}

@-o-keyframes bang {
    to {
        box-shadow: 99px -339.6666666667px #ffb300, -33px -50.6666666667px #0066ff, -119px -378.6666666667px #ff002f, -45px 56.3333333333px #ff2200, 82px -164.6666666667px #2bff00, 124px 0.3333333333px #00ffd9, 64px -212.6666666667px #2200ff, -1px -94.6666666667px #4dff00, 198px -383.6666666667px #ff00bf, -201px -120.6666666667px #c800ff, 242px 31.3333333333px #2bff00, -217px -146.6666666667px #0055ff, 104px 70.3333333333px #00eeff, -125px 21.3333333333px #00ff73, -120px -306.6666666667px #ff0059, 231px 74.3333333333px #ff00bb, -115px -275.6666666667px #ffee00, 70px -248.6666666667px #ff00b7, -61px -60.6666666667px #ff2600, 130px -93.6666666667px #26ff00, -64px -143.6666666667px #40ff00, 228px -261.6666666667px #00d5ff, 76px -33.6666666667px magenta, 164px -326.6666666667px #c4ff00, -79px -29.6666666667px #c4ff00, 63px 59.3333333333px #0062ff, 16px -366.6666666667px #c4ff00, 91px -310.6666666667px #006aff, -65px -234.6666666667px #ff2200, -164px -245.6666666667px #4000ff, 208px 38.3333333333px #eaff00, -59px -152.6666666667px #4800ff, 51px -104.6666666667px #0009ff, -53px -26.6666666667px #ff006f, -186px 55.3333333333px #ffe100, 7px -6.6666666667px #00ffd5, -102px 13.3333333333px #00ffe6, -100px -348.6666666667px #73ff00, 129px -191.6666666667px #ff0088, 5px -119.6666666667px #04ff00, -161px -12.6666666667px #ff0900, -23px -253.6666666667px #0099ff, -109px -100.6666666667px #fbff00, -167px -313.6666666667px #51ff00, 209px 80.3333333333px #c8ff00, 26px 29.3333333333px #2bff00, 201px -12.6666666667px #ff0062, 11px -281.6666666667px #00ff80, 5px -315.6666666667px #00ff66, 71px -150.6666666667px #ff00ae, -209px -50.6666666667px #00fbff;
    }
}

@-ms-keyframes bang {
    to {
        box-shadow: 99px -339.6666666667px #ffb300, -33px -50.6666666667px #0066ff, -119px -378.6666666667px #ff002f, -45px 56.3333333333px #ff2200, 82px -164.6666666667px #2bff00, 124px 0.3333333333px #00ffd9, 64px -212.6666666667px #2200ff, -1px -94.6666666667px #4dff00, 198px -383.6666666667px #ff00bf, -201px -120.6666666667px #c800ff, 242px 31.3333333333px #2bff00, -217px -146.6666666667px #0055ff, 104px 70.3333333333px #00eeff, -125px 21.3333333333px #00ff73, -120px -306.6666666667px #ff0059, 231px 74.3333333333px #ff00bb, -115px -275.6666666667px #ffee00, 70px -248.6666666667px #ff00b7, -61px -60.6666666667px #ff2600, 130px -93.6666666667px #26ff00, -64px -143.6666666667px #40ff00, 228px -261.6666666667px #00d5ff, 76px -33.6666666667px magenta, 164px -326.6666666667px #c4ff00, -79px -29.6666666667px #c4ff00, 63px 59.3333333333px #0062ff, 16px -366.6666666667px #c4ff00, 91px -310.6666666667px #006aff, -65px -234.6666666667px #ff2200, -164px -245.6666666667px #4000ff, 208px 38.3333333333px #eaff00, -59px -152.6666666667px #4800ff, 51px -104.6666666667px #0009ff, -53px -26.6666666667px #ff006f, -186px 55.3333333333px #ffe100, 7px -6.6666666667px #00ffd5, -102px 13.3333333333px #00ffe6, -100px -348.6666666667px #73ff00, 129px -191.6666666667px #ff0088, 5px -119.6666666667px #04ff00, -161px -12.6666666667px #ff0900, -23px -253.6666666667px #0099ff, -109px -100.6666666667px #fbff00, -167px -313.6666666667px #51ff00, 209px 80.3333333333px #c8ff00, 26px 29.3333333333px #2bff00, 201px -12.6666666667px #ff0062, 11px -281.6666666667px #00ff80, 5px -315.6666666667px #00ff66, 71px -150.6666666667px #ff00ae, -209px -50.6666666667px #00fbff;
    }
}

@keyframes bang {
    to {
        box-shadow: 99px -339.6666666667px #ffb300, -33px -50.6666666667px #0066ff, -119px -378.6666666667px #ff002f, -45px 56.3333333333px #ff2200, 82px -164.6666666667px #2bff00, 124px 0.3333333333px #00ffd9, 64px -212.6666666667px #2200ff, -1px -94.6666666667px #4dff00, 198px -383.6666666667px #ff00bf, -201px -120.6666666667px #c800ff, 242px 31.3333333333px #2bff00, -217px -146.6666666667px #0055ff, 104px 70.3333333333px #00eeff, -125px 21.3333333333px #00ff73, -120px -306.6666666667px #ff0059, 231px 74.3333333333px #ff00bb, -115px -275.6666666667px #ffee00, 70px -248.6666666667px #ff00b7, -61px -60.6666666667px #ff2600, 130px -93.6666666667px #26ff00, -64px -143.6666666667px #40ff00, 228px -261.6666666667px #00d5ff, 76px -33.6666666667px magenta, 164px -326.6666666667px #c4ff00, -79px -29.6666666667px #c4ff00, 63px 59.3333333333px #0062ff, 16px -366.6666666667px #c4ff00, 91px -310.6666666667px #006aff, -65px -234.6666666667px #ff2200, -164px -245.6666666667px #4000ff, 208px 38.3333333333px #eaff00, -59px -152.6666666667px #4800ff, 51px -104.6666666667px #0009ff, -53px -26.6666666667px #ff006f, -186px 55.3333333333px #ffe100, 7px -6.6666666667px #00ffd5, -102px 13.3333333333px #00ffe6, -100px -348.6666666667px #73ff00, 129px -191.6666666667px #ff0088, 5px -119.6666666667px #04ff00, -161px -12.6666666667px #ff0900, -23px -253.6666666667px #0099ff, -109px -100.6666666667px #fbff00, -167px -313.6666666667px #51ff00, 209px 80.3333333333px #c8ff00, 26px 29.3333333333px #2bff00, 201px -12.6666666667px #ff0062, 11px -281.6666666667px #00ff80, 5px -315.6666666667px #00ff66, 71px -150.6666666667px #ff00ae, -209px -50.6666666667px #00fbff;
    }
}

@-webkit-keyframes gravity {
    to {
        transform: translateY(200px);
        -moz-transform: translateY(200px);
        -webkit-transform: translateY(200px);
        -o-transform: translateY(200px);
        -ms-transform: translateY(200px);
        opacity: 0;
    }
}

@-moz-keyframes gravity {
    to {
        transform: translateY(200px);
        -moz-transform: translateY(200px);
        -webkit-transform: translateY(200px);
        -o-transform: translateY(200px);
        -ms-transform: translateY(200px);
        opacity: 0;
    }
}

@-o-keyframes gravity {
    to {
        transform: translateY(200px);
        -moz-transform: translateY(200px);
        -webkit-transform: translateY(200px);
        -o-transform: translateY(200px);
        -ms-transform: translateY(200px);
        opacity: 0;
    }
}

@-ms-keyframes gravity {
    to {
        transform: translateY(200px);
        -moz-transform: translateY(200px);
        -webkit-transform: translateY(200px);
        -o-transform: translateY(200px);
        -ms-transform: translateY(200px);
        opacity: 0;
    }
}

@keyframes gravity {
    to {
        transform: translateY(200px);
        -moz-transform: translateY(200px);
        -webkit-transform: translateY(200px);
        -o-transform: translateY(200px);
        -ms-transform: translateY(200px);
        opacity: 0;
    }
}

@-webkit-keyframes position {
    0%,
    19.9% {
        margin-top: 10%;
        margin-left: 40%;
    }
    20%,
    39.9% {
        margin-top: 40%;
        margin-left: 30%;
    }
    40%,
    59.9% {
        margin-top: 20%;
        margin-left: 70%;
    }
    60%,
    79.9% {
        margin-top: 30%;
        margin-left: 20%;
    }
    80%,
    99.9% {
        margin-top: 30%;
        margin-left: 80%;
    }
}

@-moz-keyframes position {
    0%,
    19.9% {
        margin-top: 10%;
        margin-left: 40%;
    }
    20%,
    39.9% {
        margin-top: 40%;
        margin-left: 30%;
    }
    40%,
    59.9% {
        margin-top: 20%;
        margin-left: 70%;
    }
    60%,
    79.9% {
        margin-top: 30%;
        margin-left: 20%;
    }
    80%,
    99.9% {
        margin-top: 30%;
        margin-left: 80%;
    }
}

@-o-keyframes position {
    0%,
    19.9% {
        margin-top: 10%;
        margin-left: 40%;
    }
    20%,
    39.9% {
        margin-top: 40%;
        margin-left: 30%;
    }
    40%,
    59.9% {
        margin-top: 20%;
        margin-left: 70%;
    }
    60%,
    79.9% {
        margin-top: 30%;
        margin-left: 20%;
    }
    80%,
    99.9% {
        margin-top: 30%;
        margin-left: 80%;
    }
}

@-ms-keyframes position {
    0%,
    19.9% {
        margin-top: 10%;
        margin-left: 40%;
    }
    20%,
    39.9% {
        margin-top: 40%;
        margin-left: 30%;
    }
    40%,
    59.9% {
        margin-top: 20%;
        margin-left: 70%;
    }
    60%,
    79.9% {
        margin-top: 30%;
        margin-left: 20%;
    }
    80%,
    99.9% {
        margin-top: 30%;
        margin-left: 80%;
    }
}

@keyframes position {
    0%,
    19.9% {
        margin-top: 10%;
        margin-left: 40%;
    }
    20%,
    39.9% {
        margin-top: 40%;
        margin-left: 30%;
    }
    40%,
    59.9% {
        margin-top: 20%;
        margin-left: 70%;
    }
    60%,
    79.9% {
        margin-top: 30%;
        margin-left: 20%;
    }
    80%,
    99.9% {
        margin-top: 30%;
        margin-left: 80%;
    }
}


/* EXTRA FA */

.fa-extra::before {
    content: " ";
    position: absolute;
    background-repeat: no-repeat;
    background-size: 70%;
    width: 27px;
    height: 27px;
    margin-left: -12px;
    margin-top: -11px;
}

span.margin-left1 {
    margin-left: 20px;
}

span.margin-left2 {
    margin-left: 10px;
}

.fa-velocity::before {
    background-image: url('../imagenes/iconos/velocity.png');
}

.fa-rune::before {
    background-image: url('../imagenes/iconos/rune.png');
}

.fa-size::before {
    background-image: url('../imagenes/iconos/size.png');
}

.fa-up-down::before {
    background-image: url('../imagenes/iconos/arrows.png');
}

.fa-swords::before {
    background-image: url('../imagenes/iconos/swords.png');
}

/* RADIO BOTONS */

.checkbox-group .label-tab {
    font-size: 1.6rem;
    font-weight: normal;
    display: block;
}

.material-switch > input[type="checkbox"] {
    display: none;   
}

.material-switch > label {
    cursor: pointer;
    height: 0px;
    position: relative; 
    width: 40px;  
}

.material-switch > label::before {
    background: rgb(0, 0, 0);
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    content: '';
    height: 16px;
    margin-top: -8px;
    position:absolute;
    opacity: 0.3;
    transition: all 0.4s ease-in-out;
    width: 40px;
}
.material-switch > label::after {
    background-color: #CCC;
    border-radius: 16px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    content: '';
    height: 24px;
    left: -4px;
    margin-top: -8px;
    position: absolute;
    top: -4px;
    transition: all 0.3s ease-in-out;
    width: 24px;
}
.material-switch > input[type="checkbox"]:checked + label::before {
    background: inherit;
    opacity: 0.5;
}
.material-switch > input[type="checkbox"]:checked + label::after {
    background: inherit;
    left: 20px;
}

.checkbox-group .label-tab:hover {
    cursor: pointer;
}

.checkbox-group .label-tab.disabled {
    cursor: not-allowed;
}

/* ITEM-LIST */

.item-list {
    margin-bottom: 35px;
}

.item-list .btns {
    position: absolute;
    right: 5px;
    bottom: -50px;
}

.item-list .sub-item img {
    width: 200px;
}

.item-list-simple-wrapper .item-list {
    margin-bottom: 0px;
}

/*.item {
    border: 1px solid #AAA;
    border-radius: 20px 20px 0px 0px;
    margin: 10px 0px 30px 0px;
    padding: 20px;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    background-color: rgba(255, 255, 255, 0.8);
}

.item h2 {
    background-color: #222;
    color: #FFF;
    padding: 10px;
    margin: -20px;
    border-radius: 10px 10px 0px 0px;
}

.item h2 a {
    color: inherit;
}

.item .col-lg-12 {
    min-height: 135px;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}

.item .sub-item {
    margin-left: 15px !important;
    margin-top: 35px;
    overflow: hidden;
    margin-bottom: 20px;
}

.item .btns {
    position: absolute;
    right: 5px;
    bottom: -30px;
}

.item .num {
    margin-top: -21px;
    margin-right: -20px;
    background-color: #FFF;
    color: #222;
    border-radius: 0px 10px 0px 4px;
    padding: 5px;
}

.item:hover {
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
    box-shadow: 0 8px 10px 0 rgba(0,0,0,0.2),0 5px 5px 0 rgba(0,0,0,0.14),0 4px 2px -1px rgba(0,0,0,0.12);
}*/

/**/

#atChat {
    cursor: pointer;
}

/* Main Lanzar */

.main-lanzar {
    margin: 10px;
    padding: 0px 60px 15px;
    border-bottom: 2px solid rgba(201, 169, 110, 0.35);
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 1px;
}

.main-lanzar img:hover {
    transform: scale(1.1) rotate(45deg);
    transition-duration: 1s;
}

#main-lanzar-res {
    color: #FFF;
}



/* Personajes */

.builder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    height: 42px;
    padding: 0 18px;

    border: 0;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;

    cursor: pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        border-color .18s ease;

    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* principal */
.builder-btn-primary,
.builder-btn-primary:visited {
    color: #fff;

    background:
        linear-gradient(135deg, #9a6a22, #c79b4d);

    box-shadow:
        0 10px 24px rgba(154,106,34,.25),
        inset 0 1px 0 rgba(255,255,255,.15);
}

.builder-btn-primary:hover,
.builder-btn-primary:focus,
.builder-btn-primary:active,
.builder-btn-primary.active {
    color: #fff !important;
    transform: translateY(-2px);

    background:
        linear-gradient(135deg, #a87527, #d4a85b);

    box-shadow:
        0 16px 34px rgba(154,106,34,.32),
        inset 0 1px 0 rgba(255,255,255,.18);
}

.builder-btn-primary:active {
    transform: translateY(0);
}

/* secundario */
.builder-btn-secondary {
    color: #333;

    background: #fff;

    border: 1px solid rgba(0,0,0,.08);

    box-shadow:
        0 8px 18px rgba(0,0,0,.06);
}

.builder-btn-secondary:hover {
    color: #111;

    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(0,0,0,.10);
}

/* outline */
.builder-btn-outline {
    color: #9a6a22;

    background: rgba(154,106,34,.08);

    border: 1px solid rgba(154,106,34,.22);
}

.builder-btn-outline:hover {
    color: #7c5418;

    background: rgba(154,106,34,.14);

    transform: translateY(-2px);
}

/* disabled */
.builder-btn.disabled,
.builder-btn:disabled {
    opacity: .45;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}


/* Crear Personaje */

.personajes-create {
    margin-bottom: 80px;
}

.btn-reiniciar {
    float: right;
    margin-top: 100px;
}

.personajes-form {
    /*overflow: hidden;*/
}

/* Paso 2: Raza */

.selection-category h2.title.sub2 {
    margin-top: 15px;
}

.race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.race-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    transition: .2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    color: #000;
    width: 100%;
}

.race-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(0,0,0,.14);
    color: #000;
}

.race-card.selected {
    border-color: #9a6a22;
    box-shadow:
        0 18px 42px rgba(0,0,0,.16),
        0 0 0 3px rgba(154,106,34,.18);
}

.race-card.selected::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #9a6a22;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.race-card-image {
    height: 220px;
    background:
        radial-gradient(circle at top, rgba(194,151,77,.22), transparent 55%),
        #f5f1e8;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 18px 0;
}

.race-card-image img {
    max-height: 210px;
    max-width: 100%;
    object-fit: contain;
}

.race-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.race-card-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.race-card-header span {
    display: block;
    margin-top: 3px;
    color: #9a6a22;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 700;
}

.race-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 14px 0;
}

.race-card-stats span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f2eadc;
    color: #6d4a18;
    font-size: 12px;
    font-weight: 700;
}

.race-extra-bonus {
    margin: 4px 0 24px 0;
}

.race-extra-bonus label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.race-extra-bonus .help-block {
    position: absolute;
}

.race-extra-bonus select {
    height: 36px;
    border-radius: 9px;
}

.race-card-text {
    min-height: 76px;
    color: #444;
    line-height: 1.45;
    flex: 1;
}

.race-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    opacity: 0;
    transition: .2s ease;
}

.race-card:hover .race-card-actions {
    opacity: 1;
}

.race-card-actions a {
    color: #9a6a22;
    font-weight: 700;
}

.race-card-actions .btn {
    padding: 7px 13px;
}

.race-continue {
    margin-top: 28px;
    text-align: right;
}

.race-continue .disabled {
    opacity: .45;
    pointer-events: none;
}

.race-card.disabled {
    opacity: .55;
    filter: grayscale(.35);

    cursor: not-allowed !important;

    transform: none !important;

    box-shadow:
        0 8px 18px rgba(0,0,0,.06) !important;
}

.race-card.disabled:hover {
    transform: none !important;

    box-shadow:
        0 8px 18px rgba(0,0,0,.06) !important;
}

.race-card.disabled::after {
    content: "\f023";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    position: absolute;

    top: 12px;
    right: 12px;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: rgba(0,0,0,.75);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
}

.race-card.disabled .builder-btn,
.race-card.disabled button,
.race-card.disabled select {
    pointer-events: none;
}

@media (max-width: 768px) {
    .race-toolbar {
        justify-content: stretch;
    }

    .race-search {
        width: 100%;
    }

    .race-grid {
        grid-template-columns: 1fr;
    }
}

.personajes-form .carousel .btn-control.left {
    margin-top: 25vh;
}

.personajes-form .carousel .btn-control.right {
    margin-top: 25vh;
}

.personajes-form .img-raza,
.personajes-form .img-clase {
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -50px;
}

.personajes-form .carousel .col6 {
    width: 70%;
    float: left;
    min-height: 350px;
}

.personajes-form .carousel .botones a {
    margin-left: auto;
    margin-right: auto;
}

.personajes-form #equipo-collapse .fa-plus,
.personajes-form #equipo-collapse .fa-times,
.personajes-form #equipo-collapse .fa-ban,
.btn-remove-arq {
    width: 23px;
    height: 23px;
    text-align: center;
    padding: 4px;
    border-radius: 20px;
    cursor: pointer;
}

.personajes-form .c-label {
    cursor: pointer;
    float: right;
}

.equipo-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.carrito {
    width: 100%;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);

    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(to bottom, #171b21, #101318);
    border: 1px solid rgba(201, 169, 110, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);

    color: #d7dbe2;
}

.carrito b span {
    color: #c9a96e;
    font-size: 15px;
}

.carrito .badge {
    background: rgba(201, 169, 110, 0.16);
    color: #f2e7b8;
    border: 1px solid rgba(201, 169, 110, 0.28);
    min-width: 34px;
    padding: 6px 8px;
}

.carrito .pc,
.carrito .pp,
.carrito .po,
.carrito .ppt {
    color: #9ea7b3;
    font-size: 12px;
    font-weight: 600;
}

#items {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 6px;
}

#items:empty::before {
    content: "Aún no has comprado objetos.";
    display: block;
    color: #8e97a2;
    font-size: 13px;
    padding: 12px 0;
}

.c-item {
    padding: 10px 8px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #d7dbe2;
    font-size: 13px;
}

.c-item .row {
    display: flex;
    align-items: center;
}

.c-item b {
    color: #f2e7b8;
}

.btn-remove-c {
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(190, 60, 60, 0.85);
    transition: transform 0.2s ease, background 0.2s ease;
    margin-left: -25px;
}

.btn-remove-c:hover {
    transform: scale(1.08);
    background: #d9534f;
}

#peso-carrito {
    color: #f2e7b8;
    font-weight: 700;
}

.carrito p {
    color: #9ea7b3;
}

.carrito .submit-form-group {
    margin-top: 54px;
}

.carrito .btn-submit-step-5 {
    font-size: 12px;
    display: block;
    line-height: 42px;
    text-align: center;
}

/* scroll dorado */
.carrito,
#items {
    scrollbar-width: thin;
    scrollbar-color: #c9a96e transparent;
}

.carrito::-webkit-scrollbar,
#items::-webkit-scrollbar {
    width: 6px;
}

.carrito::-webkit-scrollbar-track,
#items::-webkit-scrollbar-track {
    background: transparent;
}

.carrito::-webkit-scrollbar-thumb,
#items::-webkit-scrollbar-thumb {
    background: #c9a96e;
    border-radius: 999px;
}

.no-results {
    min-height: 40vh;
    padding-top: 100px;
}

.card-compra {
    margin-bottom: 28px;
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(13,15,19,0.08);
    box-shadow: 0 12px 26px rgba(0,0,0,0.06);
}

.card-compra h3 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 600;
    color: #222;
}

.card-compra h3 + p {
    color: #555;
    line-height: 1.55;
    margin-bottom: 18px;
}

.card-compra p {
    margin-bottom: 10px;
}

.card-compra p b {
    color: #222;
}

.card-compra .form-control {
    border-radius: 10px;
    border-color: rgba(13,15,19,0.12);
    box-shadow: none;
}

.card-compra .form-control:focus {
    border-color: rgba(201,169,110,0.65);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.14);
}

.card-compra .c-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #222;
}

.card-compra .c-label span {
    font-weight: 700;
}

.card-compra .c-label i {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.card-compra .c-label:hover i {
    transform: scale(1.08);
}

.card-compra .page-header-ancho {
    display: none;
}

/* =========================
   PASO 6 - DETALLES FINALES
   ========================= */

.step-block {
    margin-bottom: 24px;
    padding: 22px 24px;
    border-radius: 18px;
    position: relative;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(13, 15, 19, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.055);
}

.step-block-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.step-block .form-group {
    margin-bottom: 14px;
}

.step-block label {
    font-weight: 700;
    color: #222;
    font-size: 14px;
}

.form-control {
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(13, 15, 19, 0.12);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
    border-color: rgba(0,0,0,0.15);
}

.form-control:focus {
    border-color: rgba(201, 169, 110, 0.65);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.14);
}

.help-block {
    min-height: 20px;
}

.step-block .hint-block,
.step-block .help-block,
.step-block ul.help-block {
    font-size: 12px;
    line-height: 1.45;
}

/* Acciones tipo generar nombre / edad / altura */
.form-extra-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 4px;
    padding: 7px 10px;
    border-radius: 999px;

    background: rgba(201, 169, 110, 0.11);
    color: #8f6d2b;

    font-size: 13px;
    font-weight: 700;
    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.form-extra-action:hover {
    background: rgba(201, 169, 110, 0.2);
    color: #222;
    transform: translateY(-1px);
}

/* CTA final */
.step-submit {
    margin-top: 50px;
    text-align: center;
    margin-bottom: 50px;
}

.step-block label {
    font-size: 13px;
    color: #555;
}

.form-extra-action {
    width: fit-content;
}

.form-extra-action.form-extra-action-altura-peso {
    margin-top: 24px;
}

/* Mobile */
@media (max-width: 767px) {
    .step-block {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .step-block-title {
        font-size: 18px;
    }

    .btn-step-final {
        width: 100%;
        min-width: 0;
    }
}

/* Steps */
.builder-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

.builder-content {
    min-width: 0;
}

.builder-content .tab-content,
.builder-content .tab-pane,
.builder-content .table-responsive {
    min-width: 0;
}

.builder-sidebar-steps {
    position: sticky;
    top: 90px;
}

.builder-sidebar-steps .step-indicator {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.builder-sidebar-steps .step-indicator li {
    width: 100%;
    position: relative;
}

.builder-sidebar-steps .step-indicator li > i {
    display: none;
}

.builder-sidebar-steps .step-indicator li a {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 16px;
    border-radius: 16px;

    background: rgba(255,255,255,.82);
    border: 1px solid rgba(0,0,0,.06);

    color: #333;
    text-decoration: none !important;

    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.builder-sidebar-steps .step-indicator .step {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eee;
    color: #aaa;

    font-size: 18px;
}

.builder-sidebar-steps .step-indicator .caption {
    display: block !important;
    color: #333;
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
}

.builder-sidebar-steps .step-indicator .caption span {
    display: inline !important;
}

.builder-sidebar-steps .step-indicator .caption span:last-child {
    display: block !important;
    margin-top: 3px;
    font-size: 15px;
    font-weight: 700;
}

.builder-sidebar-steps .step-indicator li.active a,
.builder-sidebar-steps .step-indicator li.current a {
    border-color: rgba(154,106,34,.30);
    background: #fff;
}

.builder-sidebar-steps .step-indicator li.active .step,
.builder-sidebar-steps .step-indicator li.current .step {
    background: linear-gradient(135deg, #9a6a22, #c79b4d);
    color: #fff;
}

.builder-sidebar-steps .step-indicator li.disabled {
    opacity: .45;
}

.builder-sidebar-steps .step-indicator li.disabled a {
    pointer-events: none;
}

.builder-sidebar-steps .step-indicator li.complete {
    opacity: .45;
}

.builder-sidebar-steps .step-indicator li.complete:hover {
    opacity: .65;
}

.builder-sidebar-steps .step-indicator li.complete.active {
    opacity: 1;
}

.builder-sidebar-steps .step-indicator li.complete a {
    background:
        linear-gradient(135deg, #f6fff8, #ffffff);

    border-color: rgba(46,125,50,.18);
}

.builder-sidebar-steps .step-indicator li.complete .step {
    background:
        linear-gradient(135deg, #2e7d32, #43a047);

    color: #fff;

    position: relative;
}

.builder-sidebar-steps .step-indicator li.complete .step i {
    opacity: 0;
}

.builder-sidebar-steps .step-indicator li.complete .step::after {
    content: "\f00c";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    position: absolute;

    font-size: 16px;
}

.builder-sidebar-steps .step-indicator li.complete .caption {
    color: #2e7d32;
}

@media (max-width: 991px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }

    .builder-sidebar-steps {
        position: static;
    }
}

.wizard-rule-help {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 18px 0 24px;
    padding: 10px 14px;

    border-left: 3px solid #c9a96e;
    border-radius: 0 10px 10px 0;

    background: rgba(201, 169, 110, 0.08);
    box-shadow: none;
}

.wizard-rule-help > i {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    background: transparent;
    color: #8f6d2b;
    font-size: 16px;
}

.wizard-rule-help strong {
    font-size: 14px;
    color: #222;
}

.wizard-rule-help p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #555;
}

.wizard-rule-help a {
    margin-left: auto;
    color: #8f6d2b;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

@media (max-width: 767px) {
    .wizard-rule-help {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

.generation-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border-bottom: 0;
    margin: 24px 0;
}

.generation-methods.nav::before {
    display: none;
}

.generation-methods > li {
    float: none;
    margin: 0;
}

.generation-methods > li > a {
    display: block;
    height: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(13, 15, 19, 0.1) !important;
    background: rgba(255, 255, 255, 0.58);
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.generation-methods > li > a strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.generation-methods > li > a span {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
}

.generation-methods > li.active > a,
.generation-methods > li.active > a:hover,
.generation-methods > li.active > a:focus {
    background: linear-gradient(to bottom, #171b21, #101318);
    border-color: rgba(201, 169, 110, 0.55) !important;
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.generation-methods > li.active > a span {
    color: #c9ced6;
}

.generation-methods > li > a:hover {
    border-color: rgba(201, 169, 110, 0.45) !important;
    transform: translateY(-2px);
}

.generation-methods--sub {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.generation-methods--sub > li > a {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.35);
}

.generation-methods--sub > li > a strong {
    font-size: 13px;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .generation-methods--sub {
        grid-template-columns: 1fr 1fr;
    }
}

.checkbox-group {
    margin-top: 10px;
}

.checkbox-group .list-group-item {
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(13, 15, 19, 0.08);
    background: rgba(255, 255, 255, 0.55);
    transition: all 0.2s ease;
    cursor: pointer;
}

.checkbox-group .list-group-item:hover {
    border-color: rgba(201, 169, 110, 0.4);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.checkbox-group .label-tab {
    width: 100%;
    margin: 0;
    font-weight: 500;
    color: #333;
}

.checkbox-group .material-switch {
    transform: scale(0.9);
}

.checkbox-group input:checked + .material-switch-label {
    box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.25);
}

.checkbox-group input:checked ~ .list-group-item,
.checkbox-group .list-group-item:has(input:checked) {
    border-color: rgba(201, 169, 110, 0.6);
    background: rgba(201, 169, 110, 0.08);
}

.checkbox-group .list-group-item {
    font-size: 14px;
}

/* Tabla de generación de características */
.character-roll-table.table-responsive > .table {
    margin-top: 24px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.character-roll-table.table-responsive > .table thead th {
    border-bottom: 0 !important;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.character-roll-table.table-responsive > .table thead th p {
    margin: 0;
}

.character-roll-table.table-responsive > .table tbody tr {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.045);
}

.character-roll-table.table-responsive > .table tbody td {
    vertical-align: middle !important;
    border-top: 1px solid rgba(13, 15, 19, 0.06) !important;
    border-bottom: 1px solid rgba(13, 15, 19, 0.06);
    padding: 16px 10px !important;
    background: rgba(255, 255, 255, 0.55);
    min-height: 100px;
    width: 75px;
}

.character-roll-table.table-responsive > .table tbody td:first-child {
    border-left: 1px solid rgba(13, 15, 19, 0.06);
    border-radius: 14px 0 0 14px;
}

.character-roll-table.table-responsive > .table tbody td:last-child {
    border-right: 1px solid rgba(13, 15, 19, 0.06);
    border-radius: 0 14px 14px 0;
}

.character-roll-table.table-responsive > .table .select {
    width: 150px !important;
    height: 38px;
    border-radius: 10px;
    border-color: rgba(13, 15, 19, 0.12);
    box-shadow: none;
}

.character-roll-table.table-responsive > .table .num {
    font-size: 28px;
    line-height: 1;
    color: #222;
    font-weight: 500;
    margin: 0;
}

.character-roll-table.table-responsive > .table .numt {
    color: #10ae10;
    text-align: center;
}

.character-roll-table.table-responsive > .table .td-total .numt {
    font-size: 34px;
}

.character-roll-table.table-responsive > .table .td-mod .numt {
    font-size: 30px;
}

.character-roll-table.table-responsive > .table .extra,
.character-roll-table.table-responsive > .table .compra {
    width: 82px !important;
    height: 38px;
    border-radius: 10px;
    text-align: center;
    box-shadow: none;
}

.character-roll-table.table-responsive > .table .btn-path-sm {
    min-width: 92px;
}

.character-roll-table .form-group .help-block {
    min-height: 16px;
    font-size: 12px;
    margin-top: 4px;
}

.character-roll-table .form-group .help-block:empty {
    visibility: hidden;
}

/* responsive */
@media (max-width: 767px) {
    .table-responsive {
        border: 0;
    }

    .character-roll-table .table {
        min-width: 760px;
    }
}

.submit-form-group {
    margin-top: 34px;
    text-align: right;
}

.submit-form-group.text-center {
    text-align: center;
    display: flex;
    width: 100%;
}

.submit-form-group.text-center a {
    margin: auto;
}

.carrito .btn-submit-step-5, .carrito .btn-submit-step-5::before {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.carrito .btn-submit-step-5:hover,
.carrito .btn-submit-step-5:focus,
.carrito .btn-submit-step-5:hover::before,
.carrito .btn-submit-step-5:focus::before {
    box-shadow: 0 4px 10px rgba(201, 169, 110, 0.32) !important;
}

.personajes-form .title[aria-expanded] {
     margin-left: -10px; 
}

.skill-step-table {
    max-width: 860px;
    margin: 24px auto 0;
}

.skill-step-table .table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.skill-step-table thead th {
    border: 0 !important;
    color: #555;
    font-size: 13px;
}

.skill-step-table tbody tr {
    box-shadow: 0 8px 18px rgba(0,0,0,0.045);
}

.skill-step-table tbody td {
    vertical-align: middle !important;
    border-top: 1px solid rgba(13,15,19,0.06) !important;
    border-bottom: 1px solid rgba(13,15,19,0.06);
    padding: 0px !important;
    background: rgba(255,255,255,0.62);
    cursor: pointer;
}

.feat-teable.skill-step-table tbody td {
    padding: 10px !important;
}

.feat-teable {
    margin-top: 0;
    max-height: 500px;
    overflow-y: scroll;
}

.habt input {
    pointer-events: none;
}

.skill-step-table tbody td:first-child {
    border-left: 1px solid rgba(13,15,19,0.06);
    border-radius: 12px 0 0 12px;
}

.skill-step-table tbody td:last-child {
    border-right: 1px solid rgba(13,15,19,0.06);
    border-radius: 0 12px 12px 0;
}

.skill-step-table tbody tr:hover td {
    background: rgba(201, 169, 110, 0.12);
    transition: background 0.2s ease;
}

.skill-step-table .b {
    display: inline-block;
    min-width: 230px;
    text-align: left;
    padding: 8px 12px;
    border-radius: 10px;
    background: transparent;
    color: #222;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease;
    padding: 8px !important;
}

.skill-step-table tbody tr:hover td .b {
    transform: translateX(10px);
}

.skill-step-table .fa-check {
    color: #2f9e44;
}

.skill-step-table .fa-asterisk {
    color: #8f6d2b;
    font-size: 12px;
}

.skill-step-table .ck label {
    margin: 0 6px 0 0;
    font-weight: 700;
    color: #222;
}

.skill-step-table .rango {
    transform: scale(1.15);
    cursor: pointer;
}

.skill-step-table #total {
    max-width: 860px;
    margin: 16px auto 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(201,169,110,0.1);
    border-left: 3px solid #c9a96e;
}

.skill-step-table #total b span:first-child {
    color: #333;
}

#cont2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    margin-left: 4px;
    border-radius: 999px;
    background: #171b21;
    color: #f2e7b8;
}

.personajes-create-continue .continue {
    max-width: 520px;
    margin: 80px auto;
    padding: 32px 28px;

    border-radius: 20px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(13, 15, 19, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.personajes-create-continue p {
    font-size: 18px;
    margin-bottom: 38px;
    color: #222;
}

.personajes-create-continue .form-groups {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.personajes-create-continue .form-group {
    text-align: center;
}

.personajes-create-continue label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
    color: #555;
}

/* View Personaje */

.personajes-view .tab-content.responsive .tab-pane {
    margin-top: 25px;
}

.personajes-view .panel-heading {
    cursor: pointer;
}

.panel-dato {
    background-color: transparent;
    border: 1px solid #38100E;
    cursor: default;
    height: 180px;
    overflow: hidden;
    width: 180px;
}

.personajes-view .panel-icon {
    height: 340px;
}

.panel-dato span {
    color: #333 !important;
    display: block;
}

.panel-dato .total {
    font-size: 64px;
}

.panel-dato .sum {
    opacity: 0;
    margin-top: -20px;
}

.panel-dato .panel-heading {
    cursor: default;
}

.panel-dato:hover {
    background-color: #222;
    box-shadow: 1px 1px 10px 1px #666;
}

.panel-dato:hover span {
    color: #FFF !important;
}

.panel-dato:hover span, .panel-dato:hover, .panel-dato span, .panel-dato {
    transition-duration: 0.4s;
    transition-timing-function: ease-out;
}

.panel-dato:hover .total {
    /*font-size: 40px;*/
    margin-top: -20px;
}

.panel-dato:hover .sum {
    opacity: 1;
}

/* Card de info  */

[data-popcontent] {
    cursor: pointer;
}

.popover {
    max-width: 720px;
    width: 720px !important;
    height: auto;
    background: url(../imagenes/backgrounds/background.jpg) 0 0 repeat;
    background-size: auto;
    background-size: auto auto;
}

.popover-content {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ref .popover-content {
    overflow-y: hidden;
}

.popover .sub2.title {
    margin-top: 20px;
}

.popover h2.sub2.title {
    font-size: 3.1rem;
}

/* Hoja de Personje */

.pdf-scroll {
    width: 64vw;
    overflow-x: scroll;
    overflow-y: hidden;
}

.pdf-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.personajes-main #pdf {
    width: 1195px;
}

.personajes-hoja #pdf {
    width: 1420px;
    overflow: hidden;
    margin: auto;
}

.personajes-hoja #hoja {
    overflow-x: scroll;
}

#hoja .scroll {
    width: 100%;
    /*overflow: hidden;*/
    position: relative;
}

#hoja-personaje1, #hoja-personaje2 {
    /*border: 1px solid #000;*/
}

.hoja-img {
    width: 99.8%;
    position: absolute;
    z-index: 1;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.tag-hoja, .tag-num {
    font-size: 20px;
    padding-top: 2px;
    /* border: 1px solid #000; */
    position: absolute;
    z-index: 2;
    font-family: "Pencilant";
}

.tag-num {
    width: 40px;
    height: 32px;
    padding-top: 2px;
    text-align: center;
}

#hoja-personaje1 #nombre {
    margin-left: 39.8%;
    margin-top: 7%;
    width: 255px;
}

#hoja-personaje1 #alineamiento {
    margin-left: 61.5%;
    margin-top: 7%;
    width: 55px;
}

#hoja-personaje1 #jugador {
    margin-left: 69.6%;
    margin-top: 7%;
    width: 182px;
}

#hoja-personaje1 #hclase {
    margin-left: 39.7%;
    margin-top: 10.1%;
    width: 233px;
}

#hoja-personaje1 #dios {
    margin-left: 69.7%;
    margin-top: 10.1%;
    width: 155px;
}

.personajes-hoja #hoja-personaje1 #dios {
    margin-left: 69.7%;
    margin-top: 10.1%;
    width: 180px;
}

#hoja-personaje1 #pais {
    margin-left: 82.9%;
    margin-top: 10.1%;
    width: 112px;
}

.personajes-hoja #hoja-personaje1 #pais {
    margin-left: 82.9%;
    margin-top: 10.1%;
    width: 128px;
}

#hoja-personaje1 #raza {
    margin-left: 39.8%;
    margin-top: 13.2%;
    width: 107px;
}

#hoja-personaje1 #tamano {
    margin-left: 53.5%;
    margin-top: 13.3%;
    width: 40px;
    text-align: center;
}

#hoja-personaje1 #sexo {
    margin-left: 59.2%;
    margin-top: 13.2%;
    width: 40px;
    text-align: center;
}

#hoja-personaje1 #edad {
    margin-left: 64.9%;
    margin-top: 13.2%;
    width: 30px;
    text-align: center;
}

#hoja-personaje1 #altura {
    margin-left: 69.6%;
    margin-top: 13.2%;
    width: 74px;
    text-align: center;
}

#hoja-personaje1 #peso {
    margin-left: 75.8%;
    margin-top: 13.2%;
    width: 48px;
    text-align: center;
}

#hoja-personaje1 #pgTotal {
    margin-left: 40%;
    margin-top: 18.3%;
    width: 62px;
    height: 32px;
    padding-top: 1px;
}

#hoja-personaje1 #pgActual {
    margin-left: 30.4%;
    margin-top: 22.7%;
    width: 255px;
    height: 68px;
}

#hoja-personaje1 #iniciativaTotal {
    margin-left: 39.3%;
    margin-top: 34.1%;
}

#hoja-personaje1 #iniciativaMod {
    margin-left: 43.8%;
    margin-top: 34.1%;
}

#hoja-personaje1 #iniciativaVar {
    margin-left: 48.2%;
    margin-top: 34.1%;
}

/*car fuerza*/
#hoja-personaje1 #fue-puntos {
    margin-left: 11.8%;
    margin-top: 19.6%;
}

#hoja-personaje1 #fue-mod {
    margin-left: 16.2%;
    margin-top: 19.6%;
}

#hoja-personaje1 #fue-temp {
    margin-left: 20.8%;
    margin-top: 19.6%;
}

#hoja-personaje1 #fue-modtemp {
    margin-left: 25.4%;
    margin-top: 19.6%;
}

/*car destreza*/
#hoja-personaje1 #des-puntos {
    margin-left: 11.8%;
    margin-top: 22.6%;
}

#hoja-personaje1 #des-mod {
    margin-left: 16.2%;
    margin-top: 22.6%;
}

#hoja-personaje1 #des-temp {
    margin-left: 20.8%;
    margin-top: 22.6%;
}

#hoja-personaje1 #des-modtemp {
    margin-left: 25.4%;
    margin-top: 22.6%;
}

/*car constitucion*/
#hoja-personaje1 #con-puntos {
    margin-left: 11.8%;
    margin-top: 25.4%;
}

#hoja-personaje1 #con-mod {
    margin-left: 16.2%;
    margin-top: 25.4%;
}

#hoja-personaje1 #con-temp {
    margin-left: 20.8%;
    margin-top: 25.4%;
}

#hoja-personaje1 #con-modtemp {
    margin-left: 25.4%;
    margin-top: 25.4%;
}

/*car inteligencia*/
#hoja-personaje1 #int-puntos {
    margin-left: 11.8%;
    margin-top: 28.3%;
}

#hoja-personaje1 #int-mod {
    margin-left: 16.2%;
    margin-top: 28.3%;
}

#hoja-personaje1 #int-temp {
    margin-left: 20.8%;
    margin-top: 28.3%;
}

#hoja-personaje1 #int-modtemp {
    margin-left: 25.4%;
    margin-top: 28.3%;
}

/*car sabiduria*/
#hoja-personaje1 #sab-puntos {
    margin-left: 11.8%;
    margin-top: 31.2%;
}

#hoja-personaje1 #sab-mod {
    margin-left: 16.2%;
    margin-top: 31.2%;
}

#hoja-personaje1 #sab-temp {
    margin-left: 20.8%;
    margin-top: 31.2%;
}

#hoja-personaje1 #sab-modtemp {
    margin-left: 25.4%;
    margin-top: 31.2%;
}

/*car carisma*/
#hoja-personaje1 #car-puntos {
    margin-left: 11.8%;
    margin-top: 34.1%;
}

#hoja-personaje1 #car-mod {
    margin-left: 16.2%;
    margin-top: 34.1%;
}

#hoja-personaje1 #car-temp {
    margin-left: 20.8%;
    margin-top: 34.1%;
}

#hoja-personaje1 #car-modtemp {
    margin-left: 25.4%;
    margin-top: 34.1%;
}

/*CA*/

#hoja-personaje1 #ca-total {
    margin-left: 11.4%;
    margin-top: 38.7%;
}

#hoja-personaje1 #ca-armaduras {
    margin-left: 19.6%;
    margin-top: 38.7%;
}

#hoja-personaje1 #ca-escudo {
    margin-left: 24.4%;
    margin-top: 38.7%;
}

#hoja-personaje1 #ca-destreza {
    margin-left: 29.2%;
    margin-top: 38.7%;
}

#hoja-personaje1 #ca-tamano {
    margin-left: 33.9%;
    margin-top: 38.7%;
}

#hoja-personaje1 #ca-natural {
    margin-left: 38.7%;
    margin-top: 38.7%;
}

#hoja-personaje1 #ca-defleccion {
    margin-left: 43.5%;
    margin-top: 38.7%;
}

#hoja-personaje1 #ca-otros {
    margin-left: 48.2%;
    margin-top: 38.7%;
}

#hoja-personaje1 #ca-toque {
    margin-left: 11.4%;
    margin-top: 43.3%;
}

#hoja-personaje1 #ca-despr {
    margin-left: 25.6%;
    margin-top: 43.3%;
}

/*Salvaciones*/

#hoja-personaje1 #sal-for-total {
    margin-left: 17.6%;
    margin-top: 48.7%;
}

#hoja-personaje1 #sal-for-tabla {
    margin-left: 22.2%;
    margin-top: 48.7%;
}

#hoja-personaje1 #sal-for-mod {
    margin-left: 26.7%;
    margin-top: 48.7%;
}

#hoja-personaje1 #sal-for-mag {
    margin-left: 31.4%;
    margin-top: 48.7%;
}

#hoja-personaje1 #sal-for-otro {
    margin-left: 36%;
    margin-top: 48.7%;
}

#hoja-personaje1 #sal-for-temp {
    margin-left: 40.4%;
    margin-top: 48.7%;
}

#hoja-personaje1 #sal-ref-total {
    margin-left: 17.6%;
    margin-top: 51.6%;
}

#hoja-personaje1 #sal-ref-tabla {
    margin-left: 22.2%;
    margin-top: 51.6%;
}

#hoja-personaje1 #sal-ref-mod {
    margin-left: 26.7%;
    margin-top: 51.6%;
}

#hoja-personaje1 #sal-ref-mag {
    margin-left: 31.4%;
    margin-top: 51.6%;
}

#hoja-personaje1 #sal-ref-otro {
    margin-left: 36%;
    margin-top: 51.6%;
}

#hoja-personaje1 #sal-ref-temp {
    margin-left: 40.4%;
    margin-top: 51.6%;
}

#hoja-personaje1 #sal-vol-total {
    margin-left: 17.6%;
    margin-top: 54.4%;
}

#hoja-personaje1 #sal-vol-tabla {
    margin-left: 22.2%;
    margin-top: 54.4%;
}

#hoja-personaje1 #sal-vol-mod {
    margin-left: 26.7%;
    margin-top: 54.4%;
}

#hoja-personaje1 #sal-vol-mag {
    margin-left: 31.4%;
    margin-top: 54.4%;
}

#hoja-personaje1 #sal-vol-otro {
    margin-left: 36%;
    margin-top: 54.4%;
}

#hoja-personaje1 #sal-vol-temp {
    margin-left: 40.4%;
    margin-top: 54.4%;
}

/*Ataque base, RC*/

#hoja-personaje1 #atq-base {
    margin-left: 27.9%;
    margin-top: 57.9%;
    width: 86px;
    height: 28px;
    text-align: center;
}

#hoja-personaje1 #rc {
    margin-left: 46.6%;
    margin-top: 57.8%;
}

/*BMC, DMC*/

#hoja-personaje1 #bmc {
    margin-left: 21.2%;
    margin-top: 61.1%;
    width: 48px;
    height: 30px;
}

#hoja-personaje1 #bmc-atq {
    margin-left: 26.9%;
    margin-top: 61.1%;
}

#hoja-personaje1 #bmc-fue {
    margin-left: 31.9%;
    margin-top: 61.1%;
}

#hoja-personaje1 #bmc-tmn {
    margin-left: 36.8%;
    margin-top: 61.1%;
}


#hoja-personaje1 #dmc {
    margin-left: 21.2%;
    margin-top: 65.8%;
    width: 48px;
    height: 30px;
}

#hoja-personaje1 #dmc-atq {
    margin-left: 26.9%;
    margin-top: 65.8%;
}

#hoja-personaje1 #dmc-fue {
    margin-left: 31.9%;
    margin-top: 65.8%;
}

#hoja-personaje1 #dmc-des {
    margin-left: 36.8%;
    margin-top: 65.8%;
}

#hoja-personaje1 #dmc-tmn {
    margin-left: 42%;
    margin-top: 65.8%;
}

/*Velocidades*/

#hoja-personaje1 #velocidad-base {
    margin-left: 60.1%;
    margin-top: 18.3%;
    width: 148px;
}

/*Habilidades*/

#hoja-personaje1 .tag-habilidad-check {
    width: 12px;
    height: 12px;
    background-color: #000;
    margin-left: 52.7%;
}

.personajes-hoja #hoja-personaje1 .tag-habilidad-check {
    width: 13px;
    height: 13px;
    background-color: #000;
    margin-left: 52.6%;
}

#hoja-personaje1 .habilidad-url {
    width: 145px;
    height: 10px;
    margin-left: 54%;
}

.habilidad-url.rangoban::after {
    content: " ";
    height: 3px;
    background-color: #AE1010;
    position: absolute;
    width: 214px;
    margin-top: 4px;
}

#hoja-personaje1 .hab-total, #hoja-personaje1 .hab-mod, #hoja-personaje1 .hab-rango, #hoja-personaje1 .hab-var {
    width: 42px;
    margin-left: 71.9%;
    text-align: center;
    padding-top: 0px;
}

#hoja-personaje1 .hab-mod {
    margin-left: 80%;
}

#hoja-personaje1 .hab-rango {
    margin-left: 85.3%;
}

#hoja-personaje1 .hab-var {
    margin-left: 90.4%;
}

#hoja-personaje1 .check-19 {
    margin-top: 32.6%
}

#hoja-personaje1 .check-20 {
    margin-top: 34.5%;
}

#hoja-personaje1 .check-21 {
    margin-top: 40.3%;
}

#hoja-personaje1 .check-22 {
    margin-top: 42.2%;
}

#hoja-personaje1 .check-23 {
    margin-top: 44.1%;
}

#hoja-personaje1 .check-24 {
    margin-top: 46%;
}

#hoja-personaje1 .check-25 {
    margin-top: 47.8%;
}

#hoja-personaje1 .check-26 {
    margin-top: 49.7%;
}

#hoja-personaje1 .check-27 {
    margin-top: 51.6%;
}

#hoja-personaje1 .check-28 {
    margin-top: 53.6%;
}

#hoja-personaje1 .check-29 {
    margin-top: 57.3%;
}

#hoja-personaje1 .check-30 {
    margin-top: 59.1%;
}

#hoja-personaje1 .check-31 {
    margin-top: 61%;
}

#hoja-personaje1 .check-32 {
    margin-top: 63%;
}

#hoja-personaje1 .check-33 {
    margin-top: 64.8%;
}

#hoja-personaje1 .check-34 {
    margin-top: 66.8%;
}

.personajes-hoja #hoja-personaje1 .check-34 {
    margin-top: 66.7%;
}

#hoja-personaje1 .check-35 {
    margin-top: 68.6%;
}

#hoja-personaje1 .check-36 {
    margin-top: 70.5%;
}

#hoja-personaje1 .check-37 {
    margin-top: 74.2%;
}

#hoja-personaje1 .check-191 {
    margin-top: 76.2%;
}

#hoja-personaje1 .check-192 {
    margin-top: 78%;
}

#hoja-personaje1 .check-193 {
    margin-top: 79.9%;
}

#hoja-personaje1 .check-194 {
    margin-top: 81.8%;
}

#hoja-personaje1 .check-195 {
    margin-top: 83.7%;
}

#hoja-personaje1 .check-196 {
    margin-top: 85.6%;
}

#hoja-personaje1 .check-197 {
    margin-top: 87.5%;
}

#hoja-personaje1 .check-198 {
    margin-top: 89.2%;
}

#hoja-personaje1 .check-199 {
    margin-top: 91.2%;
}

#hoja-personaje1 .check-200 {
   margin-top: 93.1%;
}

#hoja-personaje1 .check-201 {
    margin-top: 95%;
}

#hoja-personaje1 .check-202 {
    margin-top: 96.9%;
}

#hoja-personaje1 .check-203 {
    margin-top: 98.8%;
}

#hoja-personaje1 .check-204 {
    margin-top: 100.6%;
}

#hoja-personaje1 .check-205 {
    margin-top: 102.5%;
}

#hoja-personaje1 .check-206 {
    margin-top: 104.4%;
}

#hoja-personaje1 #idiomas {
    margin-top: 115.8%;
    margin-left: 52.6%;
    width: 495px;
    height: 74px;
    line-height: 21px;
}

#hoja-personaje1 .tag-arma {
    margin-top: 72.6%;
    margin-left: 5%;
    width: 355px;
    height: 34px;
}

#hoja-personaje1 .tag-arma-bonus {
    margin-left: 34.5%;
    width: 132px;
    text-align: center;
}

#hoja-personaje1 .tag-arma-critico {
    margin-left: 45.5%;
    width: 74px;
    text-align: center;
}

#hoja-personaje1 .tag-arma-tipo {
    margin-top: 76.8%;
    margin-left: 4.5%;
    width: 66px;
    height: 34px;
    text-align: center;
}

#hoja-personaje1 .tag-arma-rango {
    margin-top: 76.8%;
    margin-left: 10%;
    width: 96px;
    height: 36px;
    text-align: center;
}

#hoja-personaje1 .tag-arma-municion {
    margin-top: 76.8%;
    margin-left: 17.9%;
    width: 200px;
    height: 36px;
    text-align: center;
}

#hoja-personaje1 .tag-arma-dano {
    margin-top: 76.8%;
    margin-left: 34.5%;
    width: 206px;
    height: 35px;
    text-align: center;
}

#hoja-personaje2 .tag-armadura {
    margin-top: 9.8%;
    margin-left: 6.1%;
    width: 220px;
    /* border: 1px solid #000; */
}

#hoja-personaje2 .tag-armadurac2 {
    margin-left: 24.4%;
    width: 45px;
    text-align: center;
}

#hoja-personaje2 .tag-armadurac3 {
    margin-left: 29.9%;
    margin-top: 10%;
    width: 96px;
    font-size: 12px !important;
    text-align: center;
    line-height: 32px;
}

#hoja-personaje2 .tag-armadurac4 {
    margin-left: 37.8%;
    width: 74px;
    text-align: center;
}

#hoja-personaje2 .tag-armadurac5 {
    margin-left: 46%;
    width: 74px;
    text-align: center;
}

#hoja-personaje2 .tag-armadurac6 {
    margin-left: 53.5%;
    width: 74px;
    text-align: center;
    font-size: 14px;
    margin-top: 10%;
    line-height: 32px;
}

#hoja-personaje2 .tag-armadurac7 {
    margin-left: 59.5%;
    width: 73px;
    text-align: center;
}


#hoja-personaje2 #armadura-bono-total, #hoja-personaje2 #armadura-penal-total, #hoja-personaje2 #armadura-fallo-total, #hoja-personaje2 #armadura-peso-total {
    margin-top: 24.8%;
}

#hoja-personaje2 #armadura-peso-total {
    margin-top: 25.3%;
}

#hoja-personaje2 .tag-obj {
    margin-top: 32.8%;
    margin-left: 6.1%;
    width: 222px;
    /* border: 1px solid #000; */
    height: 28px;
    overflow: hidden;
    line-height: 28px;
}

#hoja-personaje2 .tag-obj-peso {
    margin-left: 24.7%;
    width: 36px;
    text-align: center;
    font-size: 15px;
}

#hoja-personaje2 #obj-peso-total {
    margin-top: 95.4%;
}

#hoja-personaje2 .tag-dinero {
    margin-top: 111.2%;
    margin-left: 9%;
    width: 155px;
    font-size: 18px;
}

#hoja-personaje2 #pp {
    margin-top: 113.5%;
}

#hoja-personaje2 #po {
    margin-top: 115.6%;
}

#hoja-personaje2 #ppt {
    margin-top: 118.2%;
}

#hoja-personaje2 #exp {
    margin-top: 118.5%;
    margin-left: 30%;
    width: 314px;
    text-align: center;
}

#hoja-personaje2 #exp2 {
    margin-top: 118.5%;
    margin-left: 56.25%;
    width: 147px;
    text-align: center;
}

#hoja-personaje2 #hdotes {
    margin-top: 32.6%;
    margin-left: 30%;
    width: 460px;
    max-height: 352px;
    /* overflow: hidden; */
    line-height: 29px;
    overflow-y: scroll;
}

#hoja-personaje2 #esp {
    margin-top: 66.3%;
    margin-left: 30%;
    width: 460px;
    max-height: 585px;
    /* overflow: hidden; */
    line-height: 29px;
    overflow-y: scroll;
}

#hoja-personaje2 #esp a.nolink, #hoja-personaje2 #hdotes a.nolink {
    color: #333;
}

#hoja-personaje2 .tag-peso {
    margin-top: 99.3%;
    font-size: 13px;
    margin-left: 12%;
}

#hoja-personaje2 #peso-medio {
    margin-top: 102.4%;
}

#hoja-personaje2 #peso-pesado {
    margin-top: 105.4%;
}

/* Hoja 2 - Conjuros */

#hoja-personaje2 .tag-conjuro {
    margin-left: 86.5%;
    margin-top: 13.49%;
}

#hoja-personaje2 .tag-conjuroextra {
    margin-left: 91.6%;
    margin-top: 13.49%;
}

#hoja-personaje2 .tag-conjuroconocido {
    margin-left: 71.2%;
    margin-top: 13.49%;
}

#hoja-personaje2 .tag-cdconjuro {
    margin-left: 76.1%;
    margin-top: 13.49%;
}

#hoja-personaje2 .tag-conjuro#conjuroporniveluno,
#hoja-personaje2 .tag-conjuroconocido#conjuroconocidouno,
#hoja-personaje2 .tag-cdconjuro#cdconjurouno,
#hoja-personaje2 .tag-conjuroextra#conjuropornivel1-extra {
    margin-top: 16.2%;
}

#hoja-personaje2 .tag-conjuro#conjuroporniveldos,
#hoja-personaje2 .tag-conjuroconocido#conjuroconocidodos,
#hoja-personaje2 .tag-cdconjuro#cdconjurodos,
#hoja-personaje2 .tag-conjuroextra#conjuropornivel2-extra {
    margin-top: 19.2%;
}

#hoja-personaje2 .tag-conjuro#conjuroporniveltres,
#hoja-personaje2 .tag-conjuroconocido#conjuroconocidotres,
#hoja-personaje2 .tag-cdconjuro#cdconjurotres,
#hoja-personaje2 .tag-conjuroextra#conjuropornivel3-extra {
    margin-top: 21.9%;
}

#hoja-personaje2 .tag-conjuro#conjuropornivelcuatro,
#hoja-personaje2 .tag-conjuroconocido#conjuroconocidocuatro,
#hoja-personaje2 .tag-cdconjuro#cdconjurocuatro,
#hoja-personaje2 .tag-conjuroextra#conjuropornivel4-extra {
    margin-top: 25%;
}

#hoja-personaje2 .tag-conjuro#conjuropornivelcinco,
#hoja-personaje2 .tag-conjuroconocido#conjuroconocidocinco,
#hoja-personaje2 .tag-cdconjuro#cdconjurocinco,
#hoja-personaje2 .tag-conjuroextra#conjuropornivel5-extra {
    margin-top: 27.6%;
}

#hoja-personaje2 .tag-conjuro#conjuropornivelseis,
#hoja-personaje2 .tag-conjuroconocido#conjuroconocidoseis,
#hoja-personaje2 .tag-cdconjuro#cdconjuroseis,
#hoja-personaje2 .tag-conjuroextra#conjuropornivel6-extra {
    margin-top: 30.5%;
}

#hoja-personaje2 .tag-conjuro#conjuropornivelsiete,
#hoja-personaje2 .tag-conjuroconocido#conjuroconocidosiete,
#hoja-personaje2 .tag-cdconjuro#cdconjurosiete,
#hoja-personaje2 .tag-conjuroextra#conjuropornivel7-extra {
    margin-top: 33.2%;
}

#hoja-personaje2 .tag-conjuro#conjuropornivelocho,
#hoja-personaje2 .tag-conjuroconocido#conjuroconocidoocho,
#hoja-personaje2 .tag-cdconjuro#cdconjuroocho,
#hoja-personaje2 .tag-conjuroextra#conjuropornivel8-extra {
    margin-top: 36.2%;
}

#hoja-personaje2 .tag-conjuro#conjuropornivelnueve,
#hoja-personaje2 .tag-conjuroconocido#conjuroconocidonueve,
#hoja-personaje2 .tag-cdconjuro#cdconjuronueve,
#hoja-personaje2 .tag-conjuroextra#conjuropornivel9-extra {
    margin-top: 39.2%;
}


/* Personajes View */

#imagen {
    top: 15vh !important;
}

.character-profile {
    display: grid;
    grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
    gap: 46px;
    align-items: start;
    margin-bottom: 30px;
}

.character-profile-portrait {
    text-align: center;
}

.character-portrait-frame {
    min-height: 440px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding: 24px;

    border-radius: 28px;

    background:
        radial-gradient(circle at top, rgba(194,151,77,.18), transparent 58%),
        rgba(255,255,255,.55);

    border: 1px solid rgba(154,106,34,.16);

    box-shadow:
        0 18px 44px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.55);
}

.character-portrait-frame img {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;

    filter: drop-shadow(0 18px 18px rgba(0,0,0,.18));
}

.character-profile-portrait .builder-btn {
    margin-top: 18px;
}

.character-profile-info {
    padding-top: 10px;
}

.character-profile-summary {
    margin-bottom: 28px;
    padding-bottom: 22px;

    border-bottom: 1px solid rgba(154,106,34,.24);
}

.character-kicker {
    color: #9a6a22;

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .7px;
}

.character-profile-summary h2 {
    margin: 8px 0 0;

    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
}

.character-profile-summary p {
    margin: 6px 0 0;

    color: #666;
    font-size: 18px;
}

.character-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px;
}

.character-info-item {
    padding: 15px 16px;

    border-radius: 16px;

    background: rgba(255,255,255,.62);
    border: 1px solid rgba(0,0,0,.055);

    box-shadow: 0 10px 24px rgba(0,0,0,.04);
}

.character-info-item span {
    display: block;

    margin-bottom: 6px;

    color: #9a6a22;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .7px;
}

.character-info-item strong {
    display: block;

    color: #222;

    font-size: 17px;
    font-weight: 600;
}

.character-info-item small {
    display: block;

    margin-top: 3px;

    color: #666;
    font-size: 13px;
    font-weight: 400;
}

.character-info-wide {
    grid-column: 1 / -1;
}

@media (max-width: 991px) {
    .character-profile {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .character-portrait-frame {
        min-height: 320px;
    }

    .character-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Personajes - Caracteristicas */

.character-abilities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 22px;
}

.ability-card {
    padding: 22px;

    border-radius: 22px;

    background: rgba(255,255,255,.72);
    border: 1px solid rgba(0,0,0,.06);

    box-shadow: 0 14px 34px rgba(0,0,0,.06);
}

.ability-card-header {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 20px;
}

.ability-card-header .dice-throw {
    position: static;
    margin: 0;
    flex: 0 0 auto;
}

.ability-card-header h3 {
    margin: 0;

    font-size: 24px;
    font-weight: 700;
}

.ability-card-header h3 a {
    font-size: 15px;
}

.ability-card-header div > span {
    display: block;

    margin-top: 3px;

    color: #9a6a22;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .8px;
}

.ability-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ability-stats div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 100px;

    padding: 12px 10px;

    border-radius: 14px;

    background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.045);

    text-align: center;
}

.ability-stats span {
    display: block;

    min-height: 34px;

    margin-bottom: 10px;

    color: #666;

    font-size: 12px;
    font-weight: 700;
}

.ability-stats strong {
    display: block;

    font-size: 30px;
    font-weight: 800;
}

.stat-positive {
    color: #10AE10;
}

.stat-negative {
    color: #AE1010;
}

.ability-extras {
    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid rgba(154,106,34,.18);

    font-size: 13px;
    color: #555;
}

.ability-extras p {
    margin: 0 0 6px;
    font-size: inherit;
}

@media (max-width: 991px) {
    .character-abilities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ability-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ability-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ability-roll-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 96px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(154,106,34,.22);
    border-radius: 999px;
    background-image: none !important;
    width: auto !important;
    background:
        linear-gradient(135deg, rgba(154,106,34,.12), rgba(199,155,77,.18)) !important;
    color: #8a5c1b;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
        0 8px 20px rgba(154,106,34,.12),
        inset 0 1px 0 rgba(255,255,255,.45);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        color .18s ease;
}

.ability-roll-btn:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(135deg, #9a6a22, #c79b4d);

    color: #5c3b0d;

    -moz-animation: none;
    -webkit-animation: none;

    box-shadow:
        0 14px 28px rgba(154,106,34,.24),
        inset 0 1px 0 rgba(255,255,255,.22);
}

.ability-roll-btn:active {
    transform: translateY(0) scale(.98);
}

.ability-roll-btn i {
    font-size: 16px;
}

.salvation-stats {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 520px) {
    .salvation-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Personajes - Habilidades */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin: -4px 0 16px;
}

.skill-badges span {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 9px;

    border-radius: 999px;

    background: rgba(154,106,34,.09);
    color: #7a5018;

    font-size: 12px;
    font-weight: 800;
}

.skill-stats {
    grid-template-columns: repeat(4, 1fr);
}

.skill-rank-form {
    margin-top: auto;
    padding-top: 14px;
}

.skill-rank-form form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.skill-rank-form .form-control {
    height: 38px;
    border-radius: 12px;
}

.skill-rank-btn {
    height: 38px;
    min-width: 44px;
    padding: 0 12px;
}

@media (max-width: 991px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .skill-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-rank-form form {
        flex-direction: column;
        align-items: stretch;
    }
}

.skills-points-alert {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 24px;
    padding: 16px 18px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(154,106,34,.10),
            rgba(199,155,77,.14)
        );

    border: 1px solid rgba(154,106,34,.18);

    box-shadow:
        0 10px 24px rgba(154,106,34,.08);
}

.skills-points-icon {
    width: 48px;
    height: 48px;

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(154,106,34,.14);

    color: #9a6a22;

    font-size: 20px;
}

.skills-points-content {
    display: flex;
    flex-direction: column;
}

.skills-points-content strong {
    color: #6d4a18;

    font-size: 18px;
    font-weight: 800;
}

.skills-points-content span {
    color: #7c7c7c;

    font-size: 13px;
}

/* Personaje - Decisiones */

.menu-alert {
    margin-left: auto;
    color: #d69a2d;
    font-size: 14px;
    animation: pulse-alert 1.8s infinite;
}

@keyframes pulse-alert {
    0% {
        opacity: .55;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }

    100% {
        opacity: .55;
        transform: scale(1);
    }
}

.pj-icon {
    /*border-radius: 10px;*/
    /*margin-top: -50px;*/
    /*border: 2px solid #222;*/
    /*height: 250px;*/
    width: 250px;
}

.table {
    border-color: #222;
}

.table td {
    vertical-align: middle !important;
}

.table .b {
    color: #eee;
    background-color: #222;
    padding: 10px;
    min-width: 150px;
    max-width: 300px;
    display: block;
    text-align: left;
    text-transform: uppercase;
}

.table .b-ss {
    width: 150px;
}

.table .b-lg {
    width: 300px;
}

.table .total {
    font-size: 30px;
    font-weight: bold;
    border: 3px solid #222;
    border-radius: 30px;
    display: block;
    width: 53px;
    height: 53px;
}

.table-responsive {
    border: none;
}

.table-responsive > .table {
    margin-bottom: 10px;
}

#modelo {
    width: 100%;
}

.page-header-ancho {
    border-width: 5px;
}

.parte-arma, .r-armadura {
    cursor: pointer;
}

#cabeza {
    width: 26%;
    height: 7%;
    position: absolute;
    top: 0.3%;
    left: 35%;
}

#cuello {
    width: 10%;
    height: 4%;
    position: absolute;
    top: 13%;
    left: 43.5%;
}

#hombros {
    width: 23%;
    height: 12%;
    position: absolute;
    top: 14%;
    left: 11%;
}

#pecho {
    width: 29%;
    height: 16%;
    position: absolute;
    top: 17%;
    left: 34%;
}

#mano1 {
    width: 18%;
    height: 18%;
    position: absolute;
    top: 37%;
    left: 6%;
}

#mano2 {
    width: 15%;
    height: 19%;
    position: absolute;
    top: 35%;
    left: 77%;
}

#cintura {
    width: 31%;
    height: 5%;
    position: absolute;
    top: 36%;
    left: 33%;
}

#piernas {
    width: 41%;
    height: 30%;
    position: absolute;
    top: 41.6%;
    left: 29%;
}

#pies {
    width: 41%;
    height: 28.5%;
    position: absolute;
    top: 71.5%;
    left: 29%;
}

#arma {
    width: 6%;
    height: 49%;
    position: absolute;
    top: 33%;
    left: 75%;
    transform: rotate(-16deg);
}

#accordion {
    margin-top: 100px;
}

/* Lista de aptitudes y hechizos */

.icons {
    border: 2px solid #222;
    width: 200px;
    height: 200px;
    margin: 40px 10px 10px 10px;
    border-radius: 10px;
}

/* Especiales */

.especiales {
    border-top: 2px solid #555;
    padding: 10px 0px 10px 0px;
}

.primerespecial {
    border-top: none;
}

/** Custom Select **/

.custom-select-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
    user-select: none;
}

.custom-select-wrapper select {
    display: none;
}

.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
}

.custom-options {
    max-height: 300px;
    overflow-y: scroll;
}

.custom-select-trigger {
    cursor: pointer;
    position: relative;
    display: block;
    width: 100%;
    border: none;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 500;
    color: #212121;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 20px 20px;
}

.custom-select-trigger::after {
    position: absolute;
    display: block;
    content: '';
    width: 0px;
    height: 0px;
    top: 50%;
    right: 10px;
    transform: rotate(90deg);
    transform-origin: 50% 0;
    border-left: 10px solid #CCCCCC;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.custom-select.opened .custom-select-trigger:after {
    right: 30px;
    transform: rotate(-90deg);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%; left: 0; right: 0;
    min-width: 400px;
    margin: 15px 0;
    border: 1px solid #b5b5b5;
    box-sizing: border-box;
    box-shadow: 0 2px 1px rgba(0,0,0,.07);
    background: #fff;
    transition: all .4s ease-in-out;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px);
}

.custom-select.opened .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
    z-index: 1003;
}

.custom-options::before {
    position: absolute;
    display: block;
    content: '';
    bottom: 100%;
    right: 41px;
    width: 7px;
    height: 7px;
    margin-bottom: -2px;
    border-top: 1px solid #b5b5b5;
    border-left: 1px solid #b5b5b5;
    background: #fff;
    transform: rotate(45deg);
    transition: all .4s ease-in-out;
}

.option-hover:before {
    background: #e8e8e8;
}

.custom-option {
    position: relative;
    display: block;
    padding: 0 22px;
    border-bottom: 1px solid #b5b5b5;
    line-height: 52px;
    cursor: pointer;
    transition: all .4s ease-in-out;
}

.custom-option:first-of-type {
    border-radius: 4px 4px 0 0;
}

.custom-option:last-of-type {
    border-bottom: 0;
    border-radius: 0 0 4px 4px;
}

.custom-option:hover,
.custom-option.selection {
    background: #e8e8e8;
}

.custom-option.selection {
    color: #000;
}

.custom-select-input {
    position: absolute;
    top: -30px;
    width: 50%;
    right: -10px;
    border: 1px solid #ccc !important;
    height: 26px !important;
    font-size: 12px !important;
    padding: 2px 4px;
}

.option-icon {
    margin-right: 15px;
}

.img-responsive, .thumbnail > img, .thumbnail a > img, .carousel-inner > .item > img, .carousel-inner > .item > a > img {
    height: initial;
}

.des-modal .modal-dialog {
    width: 60vw;
}

.des-modal .col-lg-4 {
    text-align: center;
    vertical-align: middle;
}

.des-modal img {
    margin: auto;
    height: initial !important;
    width: 70%;
}

/*.update .form-group #enviar {
    position: fixed;
    right: 100px;
    top: 50vh;
}*/

.highlight {
    -webkit-animation: target-fade 3s 1;
    -moz-animation: target-fade 3s 1;
}

@-webkit-keyframes target-fade {
    0% { background-color: rgba(255,255,153,.8); }
    100% { background-color: rgba(255,255,153,0); }
}
@-moz-keyframes target-fade {
    0% { background-color: rgba(255,255,153,.8); }
    100% { background-color: rgba(255,255,153,0); }
}

.margin-10 {
    margin: 10px;
}

.margin-top-15 {
    margin-top: -15px;
}

i.fa-regular sup {
    font-size: 50%;
    top: -1em;
}

i.regla-opcional {
    font-size: 2rem;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-num {
    font-size: 0.85em;
    color: #ccc;
    margin-right: 4px;
    white-space: nowrap;
}

.vd {
    font-weight: normal;
    float: right;
    margin-top: -5px;
    margin-right: 25px;
}

.title:has(.vd)::after {
    /*width: 80%;*/
}

.m-icons {
    font-weight: normal;
    float: right;
    margin-top: -15px;
    text-transform: none;
    margin-left: 0;
}

.m-icons img {
    position: relative;
    width: 50px;
    height: auto;
    z-index: 998;
    margin-left: -10px;
}

.view .m-icons img {
    margin-left: 1px;
}

.monstruos-view #info_conjuros_conocidos ul li,
.monstruos-view #info_aptitudes_sortilegas ul li,
.monstruos-view #info_conjuros_preparados ul li {
    margin-top: 10px;
}

img.monstruo-imagen {
    margin-right: 65px;
    margin-top: 0px;
    pointer-events: none;
    z-index: 3;
}

/* CAMPAÑAS */

#info_codigo_de_campana p code {
    font-size: 20px;
    cursor: pointer;
}

/* LIBROS */

.col-libro h2 {
    font-size: 18px;
    line-height: 28px;
}

.col-libro h3 {
    font-size: 16px;
}

.col-libro a img {
    transition: all 0.2s ease-in-out;
}

.col-libro a:hover img {
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
}

.libros-view h3 a, .libros-view h3 a:hover,
.libros-view h4 a, .libros-view h4 a:hover {
    display: inline-block;
    transition: color 0.15s ease, transform 0.1s ease;
}

.libros-view h3 a:hover,
.libros-view h4 a:hover {
    transform: translateX(2px);
}

.libros-view h4 {
    /*margin-left: 25px;*/
}

/*ul.capitulos {
    column-count: 2;
    column-gap: 40px;
}

ul.capitulos > li {
    break-inside: avoid;
    margin-bottom: 18px;
}

ul.capitulos > li:first-child > h3 {
    margin-top: 0;
}*/


/* FORO */

.foro-stats {
    text-align: right;
    font-size: 1.5rem;
    text-transform: none;
    margin-top: -35px;
    pointer-events: none;
}

.foro-stats span.foro-stat {
    margin-left: 25px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.foro-stats span.foro-stat i {
    font-size: 18px;
}

.forum-topic-page {
    max-width: 1280px;
    margin: 30px auto 60px;
    padding: 0 20px;
    color: #222;
}

.forum-topic-header {
    margin-bottom: 25px;
}

.forum-topic-header h1.title.sub1 {
    margin-bottom: 5px;
}

.forum-topic-tags {
    margin-top: 10px;
}

.topic-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    background: #ffffff;
    color: #6b46c1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.topic-tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c084fc;
    display: inline-block;
}

.forum-topic-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.forum-topic-main {
    flex: 1 1 auto;
    min-width: 0;
}

.forum-post {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 0;
    padding: 0;
    margin-bottom: 32px;
    box-shadow: none;
}

.forum-post-inner {
    display: flex;
    gap: 28px;
    padding: 34px 34px 28px;
}

.forum-post-sidebar {
    flex: 0 0 56px;
}

.forum-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
}

.forum-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.forum-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    background: #7b89b6;
}

.forum-post-content-area {
    flex: 1 1 auto;
    min-width: 0;
}

.forum-post-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
    margin-top: 8px;
}

.forum-post-author {
    line-height: 1.15;
}

.forum-post-username {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.forum-post-name {
    font-size: 16px;
    color: #111;
}

.forum-post-date {
    font-size: 16px;
    color: #6f7280;
    white-space: nowrap;
}

.forum-post-body {
    font-size: 17px;
    line-height: 1.7;
    color: #1f2430;
}

.forum-post-body p {
    margin: 0 0 22px;
}

.forum-post-body p:last-child {
    margin-bottom: 0;
}

.forum-post-body a:hover {
    text-decoration: underline;
}

.forum-post-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
    margin-bottom: 28px;
}

.post-action {
    color: #727272;
    font-size: 28px;
    text-decoration: none;
}

.post-action:hover {
    color: #111;
}

.post-like-count {
    font-size: 26px;
    color: #444;
    margin-right: -10px;
}

.post-action.is-liked, i.is-liked {
    color: #d9534f;
}

.post-action .like-count {
    margin-left: 6px;
    font-size: 14px;
    vertical-align: middle;
}

.forum-post-meta {
    font-size: 15px;
    color: #6f7280;
}

.forum-time-separator {
    font-size: 18px;
    color: #6f7280;
    margin: 8px 0 18px 12px;
}

.forum-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.empty-text {
    font-size: 15px;
    margin-bottom: 20px;
}

.forum-reply-form-box {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.forum-report-collapse .forum-reply-form-box {
    margin-top: 0;
}

.forum-post .indexador {
    margin-top: -85px;
}

.forum-topic-timeline {
    width: 110px;
    flex: 0 0 110px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.timeline-sticky {
    position: static;
}

.timeline-current-top {
    margin-bottom: 10px;
}

/* timeline */

.timeline-track {
    position: relative;
    height: 280px;
    margin: 8px 0 12px 10px;
    cursor: pointer;
    user-select: none;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 999px;
    background: #dcdcff;
}

.timeline-indicator {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: flex-start;
    cursor: grab;
}

.timeline-indicator.is-dragging {
    cursor: grabbing;
}

.timeline-marker {
    width: 6px;
    height: 48px;
    margin-left: -1px;
    border-radius: 999px;
    background: #4d4dff;
}

.timeline-indicator-text {
    margin-left: 14px;
    margin-top: -2px;
}

.timeline-count {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1;
    margin-bottom: 8px;
    white-space: nowrap;
}

.timeline-current-date {
    font-size: 16px;
    color: #777;
    white-space: nowrap;
}

.timeline-bottom-date, .timeline-current-top {
    color: #777;
    font-size: 14px;
    margin-top: 12px;
}

/* login requerido */
.forum-login-required {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    margin-top: 20px;
}

.login-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-text {
    color: #666;
    margin-bottom: 15px;
}

.login-actions .btn {
    margin: 0 5px;
}

.forum-post-date {
    font-size: 14px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forum-post-edited {
    color: #aaa;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
}

.forum-post-edited i {
    font-size: 12px;
}

/* botones de accion  */

.forum-post-actions2 {
    text-align: right;
}

.forum-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: transparent;
    border: 1px solid #e3e3e3;

    padding: 4px 8px;
    border-radius: 6px;

    color: #777;
    font-size: 14px;

    cursor: pointer;

    transition: all 0.15s ease;
}

.forum-action i {
    font-size: 14px;
}

/* hover general */
.forum-action:hover {
    background: #f2f2f2;
    border-color: #d0d0d0;
    color: #333;
}

.forum-action-danger:hover {
    color: #d9534f;
    border-color: #f1b0b7;
    background: #fdeaea;
}

.forum-action-success:hover {
    color: #28a745;
    border-color: #b7e3c1;
    background: #eaf7ee;
}

.forum-action.disabled {
    /*pointer-events: none;*/
    cursor: default;
    opacity: 0.5;
}

.forum-action.is-reported {
    color: #c0392b;
}

.forum-post .forum-post-actions2 {
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: all 0.15s ease;
}

.forum-post:hover .forum-post-actions2 {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* contador */
.forum-action-count {
    font-size: 13px;
    color: #555;
}

.highlight {
    background: #fff9d6;
    transition: background 0.5s;
}

/* Info de grupo */

.forum-group-card {
    margin-bottom: 25px;
    padding: 18px 20px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
}

.forum-group-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.forum-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.forum-group-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.forum-group-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.forum-group-value {
    font-size: 15px;
    color: #222;
}

.forum-group-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.forum-group-status-abierto {
    background: #eaf7ee;
    color: #2e7d32;
}

.forum-group-status-completo {
    background: #fff4e5;
    color: #b26a00;
}

.forum-group-status-cerrado {
    background: #fbeaea;
    color: #c0392b;
}

.forum-group-value i {
    margin-right: 6px;
    color: #888;
}

.forum-group-value {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 767px) {
    .forum-group-grid {
        grid-template-columns: 1fr;
    }
}

/* Badges lista temas */

.forum-group-badges-wrap {
    margin: 8px 0;
}

.forum-group-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 6px 6px 0;
    font-size: 12px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #555;
}

.forum-group-badge-abierto {
    background: #eaf7ee;
    color: #2e7d32;
}

.forum-group-badge-completo {
    background: #fff4e5;
    color: #b26a00;
}

.forum-group-badge-cerrado {
    background: #fbeaea;
    color: #c0392b;
}

.forum-group-badge i {
    margin-right: 4px;
    font-size: 12px;
}

/* search temas */
.forum-search-box {
    margin-bottom: 25px;
}

.forum-search-actions {
    margin-top: 0;
    display: flex;
    gap: 10px;
}

.forum-advanced-toggle {
    margin: 8px 0 12px;
}

.forum-advanced-box {
    padding: 15px 15px 5px;
    border: 1px solid #ececec;
    /*background: #fafafa;*/
}

.forum-search-form .form-group {
    margin-bottom: 0;
}

/* tema en objetos */

.forum-related-box {
    margin: 20px 0;
    padding: 15px 18px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
}

.forum-related-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.forum-related-actions .btn {
    margin-right: 8px;
    margin-bottom: 8px;
}

.forum-related-box {
    margin: 20px 0;
    padding: 15px 18px;
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 8px;
}

.forum-related-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.forum-related-actions {
    margin-bottom: 12px;
}

.forum-related-actions .btn {
    margin-right: 8px;
    margin-bottom: 8px;
}

.forum-related-list {
    margin-top: 10px;
}

.forum-related-item {
    margin-bottom: 6px;
}

.forum-related-item a {
    color: #337ab7;
    text-decoration: none;
}

.forum-related-item a:hover {
    text-decoration: underline;
}

.forum-related-empty {
    color: #777;
    margin-top: 8px;
}

.forum-related-object-box {
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 6px;
}

.forum-related-object-label {
    font-weight: 700;
    color: #555;
    margin-right: 8px;
}

.forum-related-object-link {
    color: #337ab7;
    text-decoration: none;
}

.forum-related-object-link:hover {
    text-decoration: underline;
}

/* notificaciones */

.forum-notification-nav {
    position: relative;
}

.forum-notification-toggle {
    position: relative;
    padding-right: 16px !important;
}

.forum-notification-badge {
    position: absolute;
    top: 8px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d9534f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.forum-notification-dropdown {
    width: 340px;
    padding: 0;
    overflow: hidden;
}

/*.forum-notification-header {
    padding: 10px 14px;
    background: #fafafa;
    border-bottom: 1px solid #ececec;
}*/

.dropdown-menu > li > a.forum-notification-link {
    display: block;
    padding: 10px 14px;
    white-space: normal !important;
    border-bottom: 1px solid #ccc;
}

.forum-notification-topic {
    font-size: 12px;
    margin-bottom: 4px;
    margin-top: 5px;
}

.forum-notification-date {
    font-size: 11px;
}

.forum-notification-empty {
    padding: 14px;
    color: #777;
    font-size: 13px;
}

.dropdown-menu > li > a.forum-notification-footer-link {
    text-align: center;
    padding: 9px 0;
}

.dropdown-menu > li > a.forum-notification-footer-link:hover, .dropdown-menu > li > a.forum-notification-footer-link:focus {
    color: initial;
    text-decoration: none;
    background-color: initial;
}

.dropdown-menu > li > a.forum-notification-footer-link.js-leer-todas-notificaciones {
    text-align: right;
    color: #337ab7;
    margin: 9px;
}

.forum-notification-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-notification-status {
    margin-left: 10px;
    min-width: 64px;
}

.forum-notification-badge-status {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 999px;
    font-weight: 700;
    width: 65px;
}

.forum-notification-badge-status.is-unread {
    background: #eaf4ff;
    color: #2a6edb;
}

.forum-notification-badge-status.is-read {
    background: #f3f3f3;
    color: #777;
}

.forum-topic-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.forum-topic-status-cerrado {
    background: #fbeaea;
    color: #c0392b;
}

.forum-topic-status-fijado, .forum-group-badge-fijado {
    background: #eef3ff;
    color: #2f5fb3;
}

.forum-topic-status-resuelto, .forum-group-badge-resuelto {
    background: #eaf7ee;
    color: #2e7d32;
}

.forum-topic-status-fijado i.fa-thumbtack,
.forum-group-badge-fijado i.fa-thumbtack,
.forum-action i.fa-thumbtack,
.forum-action i.fa-thumbtack-slash,
.title i.fa-thumbtack {
    transform: rotate(-45deg);
}

.title i.fas {
    margin-right: 8px;
}

.forum-topic-closed-box {
    margin-top: 20px;
    padding: 15px 18px;
    background: #fafafa;
    border: 1px solid #ececec;
    color: #666;
    border-radius: 8px;
}

.forum-solution-section {
    margin: 24px 0 28px;
}

.forum-solution-title {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #2e7d32;
}

.forum-solution-title i {
    margin-right: 1px;
}

/* reportes */
.forum-report-item {
    margin-bottom: 18px;
    padding: 15px 18px;
    border: 1px solid #ececec;
    background: #fff;
    border-radius: 8px;
}

.forum-report-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.forum-report-date {
    font-size: 12px;
    color: #888;
}

.forum-report-body p {
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .forum-topic-layout {
        display: block;
    }

    .forum-topic-timeline {
        display: none;
    }

    .forum-topic-header h1 {
        font-size: 34px;
    }

    .forum-post .forum-post-actions {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}

@media (max-width: 767px) {
    .forum-post-inner {
        gap: 18px;
        padding: 24px 18px 20px;
    }

    .forum-post-top {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 18px;
    }

    .forum-post-body {
        font-size: 16px;
    }

    .post-action {
        font-size: 24px;
    }

    .forum-avatar,
    .forum-avatar-letter {
        width: 48px;
        height: 48px;
    }

    .forum-avatar-letter {
        font-size: 24px;
    }
}

/* Stats block */

.npc-statblock {
    background-image: url('../imagenes/backgrounds/fondolibro3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(0,0,0,.15);
    padding: 52px;
    font-size: 15px;
    line-height: 1.55;
    max-height: 1669px;
    overflow-y: scroll;
}

.npc-statblock-title {
    background: #2a0903;
    color: #f6e5b1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 10px;
    margin-bottom: 10px;
}

.npc-statblock p {
    margin: 10px 0;
}

.npc-statblock-section {
    margin-top: 10px;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
}

.npc-statblock a {
    color: inherit;
    text-decoration: underline;
}

.npc-especiales {
    margin-top: 10px;
}

.npc-especiales p {
    margin: 0 0 10px 15px;
    text-align: justify;
}

.npc-aptitud {
    float: left;
    margin: 0px 5px 0px 0px !important;
}

@media all and (min-width: 1530px) {
    .container {
        width: 1275px;
    }

    .container:has(> .personajes-view.personajes-main) {
        /*width: 1020px;*/
    }

    .personajes-view.personajes-main .col-md-1 {
        width: 8.33333333%;
    }

    .personajes-view.personajes-main .col-md-11 {
        width: 86.66666667%;
        margin-left: 4%;
    }

    .tabs-left {
        margin-left: -80px;
    }

    .tabs-left .nav {
        height: 75vh !important;
        overflow-y: scroll !important;
    }
}

.ad-box {
    margin: 24px 0;
    text-align: center;
    min-height: 90px;
    max-height: 140px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .ad-box {
        margin: 18px 0;
        min-height: 100px;
    }
}

.ad-box#ad-sidebar {
    position: fixed;
    right: 0;
    top: 140px;
    min-width: calc((100vw - 1275px) / 2);
    margin: 20px;
}

/* -------------------------------------------------------------- */

/* Mejoras para pantallas con menos de 1199px de ancho (Pantallas pequeñas) */

/* -------------------------------------------------------------- */

@media (max-width: 1199px) {
    .pdf-scroll {
        cursor: grab;
        width: 100%;
    }

    .ad-box#ad-sidebar {
        display: none;
    }
}

/* -------------------------------------------------------------- */

/* Mejoras para pantallas con menos de 767px de ancho (Tables) */

/* -------------------------------------------------------------- */

@media all and (max-width:767px) {
    .personajes-main #guardar {
        display: none;
    }

    .personajes-main #guardar-m {
        display: block !important;
    }

    .hidden-sm {
        display: none;
    }

    .fullbg {
        background-size: auto;
        background-position: 70% 0px;
    }

    .site-index .hm {
        padding: 10px 10px 10px 10px;
    }

    .icon-list img {
        width: 45px;
        height: 45px;
        margin-left: 6px;
    }

    .wrap > .container {
        margin-left: auto;
    }

    .navbar .container {
        margin-left: 0;   
    }

    .footer {
        padding-left: 0;
    }

    .view-control {
        left: 7px;
    }

    p.learn-more i.fa.fa-chevron-right {
        padding: 6.6px 10px 5.8px 10px;
    }

    p.learn-more.learn-lg i.fa.fa-chevron-right {
        padding: 1px 10px 0px 10px;
    }

    p.learn-more.learn-lg {
        line-height: 30px;
    }

    p, .table, b, .sim-table, span.p {
        margin: 0px 0px 2rem;
    }

    p.learn-more {
        margin: 0px 0px 5px;
    }

    p.learn-more.learn-lg span {
        width: calc(100% - 35px);
        line-height: 30px;
        font-size: 1rem;
    }

    p.learn-more.learn-lg i.fa.fa-chevron-right {
        line-height: 30px;
    }

    p.learn-more.learn-lg span::before {
        top: 2px;
    }

    p.learn-more span {
        font-size: 1.3rem;
    }

    .col-menu {
        margin-bottom: 20px;
    }

    .row-menu {
        margin-bottom: 0;
    }

    p, .table, b, .sim-table{
        font-size: 1.6rem;
    }

    .wrap > .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .fondo {
        background-position: center;
        height: 125vh;
        background-size: 100%;
    }

    .navbar-fixed-top .navbar-collapse {
        width: 80vw;
        height: 100vh;
        max-height: none;
        background-color: #222;
        border-bottom: 1px solid #CCC;
        border-right: 1px solid #CCC;
        margin-left: -85vw;
    }

    .navbar-toggle {
        float: left;
        margin-left: 10px;
        border: none;
    }

    .collapsing {
        position: initial;
    }

    .navbar-right {
        margin-top: 0px !important;
        width: 80vw;
    }

    .navbar-right li {
        padding: 10px;
        border: 1px solid #CCC;
        border-left: none;
        border-right: none;
        margin-bottom: -1px;
    }

    .navbar-right li.active {
        color: #fff;
        background-color: #080808;
    }

    .navbar-right li .fa {
        font-size: 32px;
        height: 32px;
        width: 32px;
        vertical-align: middle;
        margin-right: 10px;
    }

    .dropdown-menu {
        margin-bottom: -15px;
        padding-left: 25px;
    }

    .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus {
        background-color: #222;
    }

    .dropdown-menu li {
        border: none;
        margin-top: -10px;
    }

    .dropdown-menu li .fa {
        font-size: 24px;
    }

    .nav-title {
        display: initial !important;
        opacity: 1 !important; 
    }

    .nav-icon {
        margin-left: 0px !important;
    }

    .navbar .container {
        background-color: rgba(2,2,2,0.6);
    }

    .panel-menu {
        width: 80%;
    }

    .wr, .wr2, .image-article {
        padding: 0px !important;
        padding-top: 50px !important;
    }

    .panel-tipo .heading {
        background-size: 18% !important;
    }

    .panel-tipo .panel-open {
        background-size: 11% !important;
    }

    .panel-tipo .collapsed {
        background-size: 18% !important;
    }

    .site-login .login {
        margin-top: 0px;
    }

    .site-login .logo-login {
        margin-top: 0px;
        width: 95%;
    }

    .site-login .login {
        margin-left: 0px;
        min-height: 350px;
        padding-left: 10px;
        padding-right: 10px;
        border: none;
    }

    .btn-login {
        margin-top: 20px !important;
    }

    .panel-tipo span {
        font-size: 25px;
    }

    .panel-tipo .heading {
        height: 75px;
        padding: 20px 0px 0px 25px;
    }

    .panel-tipo .panel-open {
        height: 50px;
        padding: 8px 0px 0px 25px;
    }

    .panel-tipo .heading::after {
        top: 35px;
    }

    .panel-tipo .panel-open::after {
        top: -1px;
    }

    .titulo {
        font-size: 60px;
    }

    .image-article img {
        width: 35%;
    }

    .clases-index .image-article img {
        width: 65%;
    }

    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
        line-height: 0.9;
        font-size: 24px;
    }

    .personajes-form {
        overflow: hidden;
    }

    .personajes-form .item {
        padding-left: 0px;
    }

    .personajes-form .carousel .btn-control.right,
    .personajes-form .carousel .btn-control.left {
        margin-left: -25px;
    }

    .personajes-form .img-raza {
        width: 60%;
        margin-left: 0px;
        margin-top: 20px;
    }

    .personajes-form .img-clase {
        width: 80%;
        margin-left: 0px;
        margin-top: 20px;
    }

    .personajes-form .carousel-caption p {
        height: 140px;
    }

    .personajes-form .carousel-caption .extrap {
        height: 200px;
    }

    .personajes-form .carousel-caption .botones {
        margin-bottom: 30px;
    }

    .ol-carousel-indicators {
        display: none;
    }

    .carousel-indicators li {
        width: 25px;
        height: 25px;
        border-radius: 17px;
    }

    .carousel-indicators .active {
        width: 27px;
        height: 27px;
        margin: 0;
        background-color: #fff;
    }

    .personajes-view .panel {
        background-color: transparent;
        border: none;
        box-shadow: none;
    }

    .personajes-view .panel-body .sub-titulo {
        margin-top: 0px;
    }

    .personajes-view .panel-body {
        padding: 0px 15px 0px 15px;
    }

    .personajes-view .panel-default {
        border: none;
    }

    .especiales {
        padding: 10px 0px 10px 0px !important;
    }

    #accordion {
        padding: 15px;
        margin-top: 0px;
    }

    .table .b {
        padding: 6px;
        min-width: 50px;
        max-width: 200px;
        font-size: 12px;
    }

    .footer img {
        width: 70%;
    }

    .footer .access-list {
        display: -moz-groupbox;
    }


    /* CAROUSEL INDEX */

    .carousel-caption {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .carousel-caption p {
        font-size: 12px;
        text-align: justify;
    }

    .carousel-caption h3 {
        text-align: left;
        font-size: 45px;
        margin-top: -20px;
    }

    /* TITULOS */

    .title.sub2, .title.sub1 {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .title span {
        font-size: 2.5rem;
        top: -5px;
        text-indent: 0px;
        line-height: 1.3;
    }

    .title .fas.fa-external-link-alt {
        font-size: 18px;
    }

    .title.sub1  span {
        font-size: 2.2rem;
    }

    .title.sub2  span {
        font-size: 1.8rem;
        text-indent: 24px;
    }

    .title .sub-data {
        margin-left: -12px;
        padding: 11px 11px 0px 0px;
    }

    .title.sub1 .sub-data {
        font-size: 1.7rem !important;
    }

    .sub-icon {
        width: 20px;
    }

    /* INDEX */

    p.learn-more a i.fa.fa-chevron-right {
        padding: 10.01px 10px 9px 10px;
    }

    /* GENERAL */

    #busqueda {
        width: 62vw;
    }

    .breadcrumb {
        margin-top: 0px;
    }

    /* MENUS */

    .panel-menu .panel-header {
        width: 223px;
    }

    /* .ITEM-LIST */

    .item-list .ref {
        margin-top: -30px;
    }

    .panel-menu .panel-footer .learn-more span {
        width: 160px;
    }

    /* MENU LATERAL */

    .menu-lateral {
        width: 85vw;
        margin-top: 0px;
        margin-left: -90vw;
        padding-top: 0;
        overflow-y: scroll;
    }

    .menu-lateral-icon {
        display: none;
    }

    .menu-lateral .book-header img {
        margin-top: 30px;
    }

    .menu-lateral .book-header h6 {
        margin-bottom: 30px;
    }

    #hoja .scroll-cont {
        /*overflow-y: scroll;*/
    }

    .personajes-form #items .c-item .row .fa {
        margin-left: 0px;
    }

    .personajes-view .panel-group.responsive {
        margin-top: 20px;
        margin-bottom: 50px;
    }

    .personajes-view .panel-collapse .panel-body {
        padding-top: 20px;
    }

    .dice-modal .modal-dialog, .dice-modal .modal-content {
        margin-left: -1px;
    }

    .dice-modal .fail::after {
        top: -15px;
        left: 14.3vw;
    }

    .bloods {
        left: 14.2vw;
        top: 13px;
    }

    .dice-modal .title span {
        font-size: 30px;
    }

    .dice-modal .title.num span {
        font-size: 60px;
    }

    .pyro {
        top: 20vh;
    }

    .personajes-form .item {
        padding-left: 10px;
        padding-right: 10px;
    }

    .personajes-form .carousel .col6 {
        width: 100%;
        float: left;
    }

    .personajes-form .btn-toc {
        margin-left: auto;
        margin-right: auto;
    }

    .personajes-form .carousel-inner .item img {
        margin: 0 auto;
        width: 100%;
    }

    .carrito {
        width: 100%;
    }

    .panel-personaje h2 {
        margin-top: -45px;
    }

    .des-modal img {
        display: none;
    }

    .des-modal .modal-dialog {
        width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }

    .panel-collapse .fade {
        opacity: 1 !important;
    }

    .editar + span.change {
        opacity: 1;
    }

    .panel-dato {
        border: 1px solid #38100E !important;
        margin-bottom: 10px !important;
        width: 100%;
        overflow-x: scroll;
        height: 200px;
    }

    .panel-dato {
        background-color: #222 !important;
        box-shadow: 1px 1px 10px 1px #666;
    }

    .panel-dato span {
        color: #FFF !important;
    }

    .panel-dato .total {
        margin-top: -20px;
    }

    .panel-dato .sum {
        opacity: 1;
    }

    .alert.my-alert {
        width: 95%;
    }

    .sideway {
        width: 18px;
        writing-mode: sideways-lr;
    }

    .main-lanzar {
        margin-bottom: 1px;
    }

    .main-lanzar .form-control {
        width: 100%;
    }

    #main-lanzar-res {
        text-align: center;
        width: 100%;
        display: block;
    }

    .main-lanzar .col-lg-2 {
        text-align: center;
    }

    .telegramimg {
        width: 100% !important;
    }

    .carousel-caption {
        height: calc(188vh - 80px);
    }

    #carousel {
        height: calc(200vh - 50px);
    }

    #carousel .col-lg-6.text-center {
        margin-bottom: 20px;
    }

    .space {
        height: calc(200vh - 50px);
    }

    .step-indicator .step {
        font-size: 18px;
        height: 44px;
        line-height: 44px;
        width: 44px;
    }

    .step-indicator li::after {
        top: 44px;
    }

    .modal {
        margin-top: 30vw;
    }

    .dice-modal {
        width: initial;
        margin-top: 0vw
    }

    #carousel-razas h4.sub0,
    #carousel-clases h4.sub0 {
        margin-top: 0px !important;
    }

    #carousel-razas h4.sub0 span,
    #carousel-clases h4.sub0 span {
        font-size: 12px;
    }

    .pj-raza {
        padding: 0;
    }

    .personajes-form .carousel .btn-control.left {
        position: absolute;
        left: 12px;
        top: 55vh;
        margin: 0;
        z-index: 1100;
    }

    .personajes-form .carousel .btn-control.right {
        position: absolute;
        right: 12px;
        top: 55vh;
        margin: 0;
        z-index: 1100;
    }

    .generation-methods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .btn-path:not(.btn-path-sm) {
        transform: scale(.75);
    }

    .equipo-layout {
        display: inline;
    }
}


/* -------------------------------------------------------------- */

/* Mejoras para pantallas con menos de 480px de ancho (Celulares) */

/* -------------------------------------------------------------- */

@media all and (max-width:480px) {
    .logo {
        width: 65% !important;
    }

    .title.sub2, .title.sub1 {
        margin-left: 0px;
    }

    .icon-wrapper {
        transform: translateY(-5px);
    }

    .title.sub1 .fas.fa-external-link-alt, .title.sub2 .fas.fa-external-link-alt {
        font-size: 20px;
    }

    .item-list .ref {
        margin-top: -20px;
    }

    .view-switch {
        margin-top: -80px;
    }

    img.monstruo-imagen {
        max-width: 90vw;
        margin: 0;
    }

    .custom-select-trigger {
        max-width: 100vw;
    }

    .custom-options {
        min-width: 85vw;
    }

    .wrap-edit {
        max-width: 75vw;
    }

    .item-list-simple-wrapper {
        min-width: 80vw;
    }

    .class-search .form-group.field-categoria.pull-right {
        float: initial !important;
    }

    .class-search .form-group.field-categoria.pull-right label {
        position: relative !important;
    }

    .class-search .form-group {
        margin-bottom: 0;
    }

    .class-search {
        margin-bottom: 25px;
    }

    .title.sub1 + .indexador + div {
        margin-left: 20px;
        margin-right: 20px;
    }

    .ppt:after,
    .po:after,
    .pp:after,
    .pc:after {
        position: relative;
    }

    a.link, a.local {
        margin-right: 0px;
    }

    a.link::after, a.local::after {
        position: relative;
        margin-left: 2px;
    }

    .responsive-img {
        max-width: 100%;
        overflow: scroll;
    }

    /* FORO */

    .foro-stats {
        float: initial;
        margin-left: -25px;
        display: block;
        margin-bottom: 15px;
    }

    .title.sub2.sub3[aria-expanded] {
        margin-left: 0px;
    }

    .title.sub2.sub3 + div,
    .title.sub2.sub3 + .indexador + div,
    .title.sub2.sub3 + p + div,
    .title.sub2.sub3 + .indexador + p,
    .title.sub2.sub3 + .indexador + p + div,
    .title.sub2.sub3 + .ref + .indexador + div,
    .title.sub2.sub3 + .ref + .indexador + p,
    .title.sub2.sub3 + .ref + div,
    .title.sub2.sub3 + .ref + p,
    h3.title.sub2.sub3 + p,
    .title.sub2.sub3 + h5 + .ref + .indexador + div {
        margin-left: 0px;
    }

    h3.h3 + div, h3.h3 + .indexador + div,
    .title.sub2 + div,
    .title.sub2 + .indexador + div,
    .title.sub2 + p + div,
    .title.sub2 + .indexador + p,
    .title.sub2 + .indexador + p + div,
    .title.sub2 + .ref + .indexador + div,
    .title.sub2 + .ref + .indexador + p,
    .title.sub2 + .ref + div,
    .title.sub2 + .ref + p, .title.h4 + div,
    h3.title.sub2 + p,
    .title.sub2 + h5 + .ref + .indexador + div {
        margin-left: 0px;
    }
}

/* Nota desarrollador */
.note-warning {
    margin: 22px auto 0;
    padding: 18px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;

    border-radius: 16px;

    background: rgba(13, 110, 253, .06);
    border: 1px solid rgba(13, 110, 253, .14);

    color: #2f3e55;
}

.note-warning i {
    margin-top: 2px;
    font-size: 18px;
    color: #4a79c9;
}

.note-warning strong {
    display: block;
    margin-bottom: 6px;
}

.note-warning p {
    line-height: 1.5;
    opacity: .92;
}

/* Personaje - Cargando */
#pj-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f4f1ea;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pj-loading-screen::before {
    content: '';
    position: absolute;
    inset: 0;

    background-image: url('../imagenes/backgrounds/bg4.jpg');
    background-size: cover;
    background-position: center;

    opacity: .18;
}

.pj-loading-box {
    text-align: center;
    padding: 32px 42px;
    margin-top: -25vh;
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    border: 1px solid rgba(184,130,42,.22);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.pj-loading-box i {
    display: block;
    font-size: 42px;
    color: #b8822a;
    margin: auto;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 8px rgba(184,130,42,.35));
}

.pj-loading-box strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.pj-loading-box span {
    opacity: .75;
}

/* =========================
   libros/
   ========================= */

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 28px;
    margin-top: 34px;
}

.book-card {
    position: relative;
    text-align: center;
    border-radius: 20px;
    padding: 18px 16px 20px;
    /*background: rgba(255, 255, 255, 0.55);*/
    /*border: 1px solid rgba(13, 15, 19, 0.08);*/
    /*box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);*/
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.book-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 110, 0.55);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.book-card:hover .book-title {
    color: #c9a96e;
}

.book-cover-link {
    display: block;
    text-decoration: none;
}

.book-cover {
    width: 100%;
    max-width: 230px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease;
}

.book-card:hover .book-cover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.16);
}

.book-info {
    padding-top: 20px;
}

.book-series {
    color: #555;
    font-size: 14px;
    line-height: 1.35;
}

.book-title {
    margin: 4px 0 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #222;
}

.book-subtitle {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: #333;
}

.book-meta {
    margin-top: 14px;
    color: #666;
    font-size: 13px;
}

.book-series {
    font-size: 13px;
    color: #777;
}

.book-title {
    font-size: 18px;
    color: #111;
}

.book-subtitle {
    font-size: 15px;
    color: #444;
}

.book-meta {
    font-size: 12px;
    color: #888;
}

/* Responsive */
@media (max-width: 1199px) {
    .books-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
    }

    .book-card {
        padding: 14px 12px 16px;
    }

    .book-title {
        font-size: 15px;
    }

    .book-series,
    .book-subtitle,
    .book-meta {
        font-size: 12px;
    }
}

@media (max-width: 460px) {
    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-cover {
        max-width: 220px;
    }
}

.book-view {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
    margin-top: 82px;
}

.book-view-cover {
    position: sticky;
    top: 90px;
}

.book-view-cover img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

.book-view-content {
    min-width: 0;
}

.book-view-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.book-view-title {
    margin: 0 0 28px;
    font-size: 36px;
    line-height: 1.25;
    color: #222;
}

.book-chapters-card {
    padding: 26px 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(13, 15, 19, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.07);
}

.book-chapters-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.book-chapters,
.book-sections {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.book-chapter {
    padding: 16px 0;
    border-bottom: 1px solid rgba(13, 15, 19, 0.09);
}

.book-chapter:last-child {
    border-bottom: 0;
}

.book-chapter-title h3,
.book-chapter-title {
    margin: 0;
}

.book-chapter-title a {
    color: #222;
    font-size: 21px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.book-chapter-title a:hover {
    color: #c9a96e;
}

.book-sections {
    margin-top: 10px;
    padding-left: 18px;
    border-left: 1px solid rgba(201, 169, 110, 0.35);
}

.book-sections li {
    margin: 7px 0;
}

.book-sections a {
    color: #337ab7;
    font-size: 15px;
    text-decoration: none;
}

.book-sections a:hover {
    color: #8f6d2b;
}

@media (max-width: 991px) {
    .book-view {
        grid-template-columns: 1fr;
    }

    .book-view-cover {
        position: static;
        max-width: 360px;
        margin: 0 auto;
    }

    .book-view-title {
        font-size: 28px;
        text-align: center;
    }

    .book-view-meta {
        text-align: center;
    }
}

.book-empty {
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    color: #777;
    background: rgba(0,0,0,0.04);
    border: 1px dashed rgba(0,0,0,0.1);
}

.book-empty p {
    margin: 0;
    font-size: 14px;
}

.chapter-icon {
    font-size: 12px;
    margin-left: 6px;
    opacity: 0.6;
}

.rule-reader {
    max-width: 980px;
    margin: 0 auto;
}

.rule-reader p {
    font-size: 16px;
    line-height: 1.7;
    color: #2b2b2b;
    margin-bottom: 18px;
    text-align: justify;
}

.rule-reader .ref {
    float: right;
    font-size: 13px;
    color: #337ab7;
    margin-left: 12px;
}

.ref-link {
    font-size: 13px;
    color: #337ab7;
    text-decoration: none;
}

.ref-link:hover {
    color: #8f6d2b;
    text-decoration: none;
}

.ref-popover-content {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 8px;
}

.ref-popover-cover {
    height: 270px;
}

.ref-popover-cover img {
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.ref-popover-info {
    min-width: 0;
    color: #2b2b2b;
    font-size: 15px;
    line-height: 1.5;
}

.ref-popover-info p {
    margin: 0 0 18px;
}

.ref-popover-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #337ab7;
    font-weight: 600;
    text-decoration: none;
}

.ref-popover-link:hover {
    color: #8f6d2b;
    text-decoration: none;
}

.popover-close {
    position: absolute;
    top: 14px;
    right: 16px;
    cursor: pointer;
    color: #9ea7b3;
    font-size: 16px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.popover-close:hover {
    color: #222;
    transform: rotate(90deg);
}

.book-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.book-sidebar {
    min-width: 0;
    margin-top: 90px;
}

.book-content {
    min-width: 0;
}

.book-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
    height: fit-content;
}

.book-nav {
    position: static;
    max-height: calc(100vh - 200px);
    overflow: auto;
}

.book-sidebar a.active-section {
    color: #9a6a22;
    font-weight: 700;
    background: rgba(154, 106, 34, .08);
    border-left: 3px solid #9a6a22;
    padding-left: 8px;
}

@media (max-width: 1199px) {
    .book-layout {
        grid-template-columns: 1fr;
    }

    .book-sidebar {
        display: none;
    }
}
