.form-check.form-check-solid .form-check-input:checked {
    background-color: #F39200;
}

.page-item.active .page-link {
    background-color: #F39200;
}

.form-check.form-check-solid .form-check-input:checked,
.select2-container--bootstrap5 .select2-dropdown .select2-results__option.select2-results__option--selected {
    background-color: #F39200;
}

.image_search {
    height: 250px;
    /*width: 250px;*/
}

#kt_post,
.kt_post {
    margin-top: 90px;
}

.f-right {
    float: right
}

.mtn-3 {
    margin-top: -3px
}

.image-preview-logo {
    width: 75%;
    margin-left: 10%;
}

.search_value {
    font-size: 14pt;
}

a,
.link-danger,
.btn.btn-active-color-danger.active,
.btn.btn-active-color-danger:hover,
.btn-outline-danger,
.svg-icon.svg-icon-danger,
.btn.btn-icon-danger .svg-icon {
    color: #F39200;
}

#loadingpreview {
    margin-left: 40%;
    margin-top: 20px;
}

.removeBook {
    cursor: pointer;
}

.form-check.form-check-solid .form-check-input:checked {
    background-color: #F39200;
}

.page-item.active .page-link {
    background-color: #F39200;
}

.accordion-button:not(.collapsed) {
    color: #000 !important;
}



body {
    /*background-image: url('assets/media/auth/bg4.jpg');*/
}

.tns .tns-nav button.tns-nav-active {
    background-color: #F39200 !important;
}

.bottomleft {
    position: absolute;
    bottom: 8px;
    left: 16px;
    font-size: 18px;
    color: #fff;
}

#bannergeneral {
    background-image: url('/public/images/banners/general.jpg');
    background-repeat: no-repeat;
    margin-top: -53px;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
}

.carticon {
    margin-top: 20px;
    margin-left: 15px;
}

.iconuser {
    display: inline-block;
    font-size: 1em;
    width: 2.5em;
    height: 2.5em;
    line-height: 2.5em;
    text-align: center;
    border-radius: 50%;
    background: #F39200;
    vertical-align: middle;
    color: white;
    margin-top: 20px;
}

.tab-pane {
    border-bottom: 1px solid #ddd;
}

.btn.btn-warning,
.btn.btn-warning:hover,
.btn.btn-danger,
.btn.btn-danger:hover,
.scrolltop {
    background-color: #F39200;
}

.btn.btn-active-light-warning.btn-outline:not(.btn-outline-default) {
    border-color: #F39200 !important;
}

.container-xxl {
    max-width: 100%
}

.container-xl {
    max-width: 75%;
    margin-top: 30px;
}

@media (min-width: 768px) {
    #menuusermobile {
        display: none
    }
}

.mobile,
#menusearchmobile {
    display: none
}

#kt_content,
.kt_content {
    margin-top: -60px;
}

#linkaccount {
    padding: 0.65rem 1rem;
}

.h-42px {
    height: 42px;
}

#inputQuantity {
    padding-left: 7rem !important;
}

#search_header {
    margin-top: 3%;
    border-color: #1B4B66;
    width: 270px;
}

.search_button {
    margin-top: 25px;
}

.sectionRight {
    position: fixed;
    right: 0;
}

.menulanguages {
    position: fixed;
    right: 20%
}

#telegram-banner {
    z-index: 1;
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0088cc;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;

}

#telegram-banner>button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 10px;
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
}

#telegram-banner>a {
    display: inline-block;
    background-color: #006699;
    color: white;
    padding: 10px 20px;
    margin-left: 20px;
    border-radius: 5px;
    text-decoration: none;
}

#whatsapp-banner {
    z-index: 1;
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#whatsapp-banner>button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 10px;
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
}

#whatsapp-banner>a {
    display: inline-block;
    background-color: #1db954;
    color: white;
    padding: 10px 20px;
    margin-left: 20px;
    border-radius: 5px;
    text-decoration: none;
}

#search_header_mobile {
    display: none;
}

@media (max-width: 768px) {
    #telegram-banner>a {
        margin-top: 20px;

    }

    #telegram-banner {
        z-index: 1;

    }

    #whatsapp-banner>a {
        margin-top: 20px;
    }

    #whatsapp-banner {
        z-index: 1;
        bottom: 180px;
    }

    #search_header_mobile {
        display: block;
        margin-bottom: 15px;
        background-color: #f9ca93;
        padding-top: 10px;
        margin-right: 0px;

    }

    #kt_content,
    .kt_content {
        margin-top: 0px;
    }

    #kt_post,
    .kt_post {
        margin-top: 0px;
    }

    .mobile {
        display: block;
        color: #F39200
    }

    .desktop {
        display: none
    }

    .container-xl {
        max-width: 100%;
    }

    #menusearch {
        display: none;
    }

    .w-100-mobile {
        width: 100%;
    }

    .margin-left-mobile {
        margin-left: 20px;
    }

    #booksfilter {
        margin-top: -30px;
    }

    #inputQuantity {
        padding-left: 9rem !important;
    }

    #search_header {
        /*margin-top: 270px;*/
        margin-top: 40px;
        width: 200px;
        display: none;
    }

    .search_button {
        /*margin-top: 288px;*/
        margin-top: 55px;
        display: none;
    }

    .sectionRight {
        position: absolute;
        right: auto;
        top: 280px;
        /*z-index: -200;*/
    }

    .menulanguages {
        position: fixed;
        right: 0;
        margin-top: -10px;
    }

    #menuusermobile {
        /*margin-top: 50px*/
        border-top: 1px solid #837575;
        padding-top: 5px;
    }
}

#menusearchmobile {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 400px;
    max-height: 600px;
    overflow-y: auto;
    width: 100%;
}



#hidecategories,
#hidecategoriesmobile,
#showcategories,
#showcategoriesmobile,
#hideprices,
#hidepricesmobile,
#showprices,
#showpricesmobile,
#hidesections,
#hidesectionsmobile,
#showsections,
#showsectionsmobile,
#hidepublishers,
#hidepublishersmobile,
#showpublishers,
#showpublishersmobile,
#hidelanguages,
#hidelanguagesmobile,
#showlanguages,
#showlanguagesmobile {
    cursor: pointer;
    float: right;
    font-size: 15px;
    color: #F39200;
}

#kt_cart_mobile_toggle {
    margin-right: 15px;
    margin-top: -5px;
}

#menusearchicon {
    float: left;
    height: 30px;
    margin-top: 4px;
    margin-right: 5px;
    width: 50%;
    /*padding-top: 7px;*/
    background-color: #fff;
    text-align: center;
}

.margin-right-20 {
    margin-right: 20px;
}


.padding-10 {
    padding: 10px;
}

.library {
    cursor: pointer;
}

#refresh_map {
    cursor: pointer;

    width: 150px;
    padding: 5px;
    margin-left: 5px;
}

#librerias_filter {
    float: left;

}

#librerias_filter input {
    width: 250px;
    padding-left: 25px;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB2ZXJzaW9uPSIxLjEiICAgaWQ9InN2ZzQ0ODUiICAgdmlld0JveD0iMCAwIDIxLjk5OTk5OSAyMS45OTk5OTkiICAgaGVpZ2h0PSIyMiIgICB3aWR0aD0iMjIiPiAgPGRlZnMgICAgIGlkPSJkZWZzNDQ4NyIgLz4gIDxtZXRhZGF0YSAgICAgaWQ9Im1ldGFkYXRhNDQ5MCI+ICAgIDxyZGY6UkRGPiAgICAgIDxjYzpXb3JrICAgICAgICAgcmRmOmFib3V0PSIiPiAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9zdmcreG1sPC9kYzpmb3JtYXQ+ICAgICAgICA8ZGM6dHlwZSAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4gICAgICAgIDxkYzp0aXRsZT48L2RjOnRpdGxlPiAgICAgIDwvY2M6V29yaz4gICAgPC9yZGY6UkRGPiAgPC9tZXRhZGF0YT4gIDxnICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLC0xMDMwLjM2MjIpIiAgICAgaWQ9ImxheWVyMSI+ICAgIDxnICAgICAgIHN0eWxlPSJvcGFjaXR5OjAuNSIgICAgICAgaWQ9ImcxNyIgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNjAuNCw4NjYuMjQxMzQpIj4gICAgICA8cGF0aCAgICAgICAgIGlkPSJwYXRoMTkiICAgICAgICAgZD0ibSAtNTAuNSwxNzkuMSBjIC0yLjcsMCAtNC45LC0yLjIgLTQuOSwtNC45IDAsLTIuNyAyLjIsLTQuOSA0LjksLTQuOSAyLjcsMCA0LjksMi4yIDQuOSw0LjkgMCwyLjcgLTIuMiw0LjkgLTQuOSw0LjkgeiBtIDAsLTguOCBjIC0yLjIsMCAtMy45LDEuNyAtMy45LDMuOSAwLDIuMiAxLjcsMy45IDMuOSwzLjkgMi4yLDAgMy45LC0xLjcgMy45LC0zLjkgMCwtMi4yIC0xLjcsLTMuOSAtMy45LC0zLjkgeiIgICAgICAgICBjbGFzcz0ic3Q0IiAvPiAgICAgIDxyZWN0ICAgICAgICAgaWQ9InJlY3QyMSIgICAgICAgICBoZWlnaHQ9IjUiICAgICAgICAgd2lkdGg9IjAuODk5OTk5OTgiICAgICAgICAgY2xhc3M9InN0NCIgICAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLjY5NjQsLTAuNzE3NiwwLjcxNzYsMC42OTY0LC0xNDIuMzkzOCwyMS41MDE1KSIgICAgICAgICB5PSIxNzYuNjAwMDEiICAgICAgICAgeD0iLTQ2LjIwMDAwMSIgLz4gICAgPC9nPiAgPC9nPjwvc3ZnPg==);
    background-repeat: no-repeat;
    background-color: #fff;
    background-position: 0px 3px !important;
}

.popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente */
    z-index: 9999;
    /* Índice de apilamiento alto */
}

.popup-content {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #cccccc;
    text-align: center;
    width: 100%;
}

.popup button {
    margin: 5px;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.line-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 25px;
}

.line {
    background-color: #ddd;
    /* Color de la línea */
    height: 2px;
    /* Altura de la línea */
    flex-grow: 1;
    /* Hace que las líneas ocupen el espacio disponible */
    margin: 0 10px;
    /* Espacio alrededor del texto */
}

.text {
    white-space: nowrap;
    /* Asegura que el texto no se parta en líneas */
}

.loginheader {
    font-size: 24px;
}

#newcustomer,
#loginauthor {
    display: none;
}

#changeToLogin,
#changeToRegister {
    cursor: pointer;
}

.badgeResults {
    background-color: #F39200;
    color: white;
    font-size: 9pt;
    padding: 10px;
    margin-bottom: 10px;
}

.book-container {
    position: relative;
    display: inline-block;
}

.book-tags {
    position: absolute;
    top: 10px;
    left: 10px;
}

.book-number {

    float: left;
    background-color: #f1bc00 !important;
    color: #000;
    padding: 5px 10px;
    /* Ajusta el padding para hacerlo rectangular */
    border-radius: 5px;
    /* Ajusta el valor del border-radius*/
}

.book-presale {
    background-color: #f1416c;

    float: left;
    color: #fff;
    padding: 5px 10px;
    /* Ajusta el padding para hacerlo rectangular */
    border-radius: 5px;
    /* Ajusta el valor del border-radius*/
}

/* ===== TOP BANNER STYLES (Barnes & Noble Style) ===== */
.top-banner-container {
    background-color: #F39200;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Cuando el header está en modo sticky/fixed */
.header-fixed #kt_header,
.header-tablet-and-mobile-fixed #kt_header {
    /*z-index: 1001 !important;*/
}

.top-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 30px;
}

.top-banner-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    flex-shrink: 0;
    min-width: 280px;
    padding: 0 20px;
}

.top-banner-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.top-banner-link {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

.top-banner-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.top-banner-books-left,
.top-banner-books-right {
    display: flex;
    gap: 12px;
    flex: 1;
}

.top-banner-books-left {
    justify-content: flex-end;
}

.top-banner-books-right {
    justify-content: flex-start;
}

.top-banner-book {
    flex-shrink: 0;
    width: 100px;
    height: 135px;
    border-radius: 6px;
    overflow: hidden;
}

.top-banner-book img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-banner-container {
        padding: 5px 0;
    }

    .top-banner-content {
        flex-direction: row;
        gap: 3px;
        text-align: center;
        padding: 0 10px;
        align-items: center;
        justify-content: center;
    }

    .top-banner-text {
        order: 1;
        min-width: auto;
        padding: 3px 8px;
        flex-shrink: 0;
    }

    .top-banner-books-left {
        order: 0;
        display: flex;
        flex-direction: row;
        gap: 4px;
        flex-shrink: 0;
    }

    .top-banner-books-right {
        order: 2;
        display: flex;
        flex-direction: row;
        gap: 4px;
        flex-shrink: 0;
    }

    .top-banner-book {
        width: 20px;
        height: 27px;
    }

    .top-banner-title {
        font-size: 0.7rem;
        letter-spacing: 0.3px;
        margin-bottom: 2px;
        white-space: nowrap;
    }

    .top-banner-link {
        font-size: 0.55rem;
        padding: 3px 6px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .top-banner-container {
        padding: 5px 0;
        overflow: hidden;
    }

    .top-banner-content {
        gap: 3px;
        padding: 0 5px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .top-banner-books-left,
    .top-banner-books-right {
        gap: 8px;
        flex-shrink: 1;
        min-width: 0;
    }

    .top-banner-book {
        width: 30px;
        height: 48px;
        flex-shrink: 0;
    }

    .top-banner-text {
        padding: 3px 6px;
        flex-shrink: 0;
        min-width: 120px;
    }

    .top-banner-title {
        font-size: 0.6rem;
        letter-spacing: 0.1px;
    }

    .top-banner-link {
        font-size: 0.5rem;
        padding: 2px 4px;
    }
}

/* ===== HERO BANNERS STYLES (Ajustados para coexistir) ===== */
.hero-banners-container {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.hero-carousel .carousel-item,
.carousel-item {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 10px;
}

.hero-banner-slide,
.carousel-item .banner-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-banner-content,
.carousel-item .banner-content {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    z-index: 10;
    max-width: 500px;
}

.hero-banner-badge {
    background: #F39200;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.4);
}

.hero-banner-title,
.carousel-item .banner-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero-banner-subtitle,
.carousel-item .banner-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-banner-btn,
.carousel-item .banner-btn {
    background: #F39200;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(243, 146, 0, 0.4);
}

.hero-banner-btn:hover,
.carousel-item .banner-btn:hover {
    background: #e68900;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 146, 0, 0.6);
    color: white;
}

/* Bootstrap Carousel Custom Styling for Hero */
.hero-carousel .carousel-indicators {
    bottom: 30px;
}

.hero-carousel .carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    background-color: #F39200;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(243, 146, 0, 0.6);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev {
    left: 30px;
}

.hero-carousel .carousel-control-next {
    right: 30px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: #F39200;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-size: 25px 25px;
}

/* Responsive Design for Hero Banner */
@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 350px;
        margin: 0 5px;
    }

    .hero-banner-content {
        left: 30px;
        max-width: calc(100% - 60px);
    }

    .hero-banner-title {
        font-size: 2.2rem;
    }

    .hero-banner-subtitle {
        font-size: 1.1rem;
    }

    .hero-banner-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .hero-carousel .carousel-control-prev {
        left: 15px;
    }

    .hero-carousel .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-carousel .carousel-item {
        height: 300px;
    }

    .hero-banner-content {
        left: 20px;
        max-width: calc(100% - 40px);
    }

    .hero-banner-title {
        font-size: 1.8rem;
    }

    .hero-banner-subtitle {
        font-size: 1rem;
    }
}

/* ===== MODERN SECTION STYLES ===== */
.section-header {
    padding: 0 20px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d !important;
}

.view-all-btn {
    background: linear-gradient(135deg, #F39200 0%, #ff9500 100%);
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.3);
}

.view-all-btn i {
    color: white !important;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 146, 0, 0.4);
    color: white !important;
}

.view-all-btn:hover i {
    color: white !important;
}

/* ===== MODERN BOOKS CAROUSEL ===== */
.featured-books-container {
    padding: 0 20px;
}

.books-carousel-wrapper {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 30px 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
}

.books-carousel-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F39200 0%, #ff9500 100%);
}

.books-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* ===== CAROUSEL NAVIGATION ===== */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #333;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 20;
    cursor: pointer;
}

.carousel-nav:hover {
    background: #F39200;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(243, 146, 0, 0.4);
}

.carousel-nav-prev {
    left: 10px;
}

.carousel-nav-next {
    right: 10px;
}

/* ===== MODERN BOOK CARDS ===== */
.modern-book-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    margin: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 200px;
}

.modern-book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F39200 0%, #ff9500 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.modern-book-card:hover::before {
    transform: scaleX(1);
}

.modern-book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.book-cover-container {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0px 15px 0px;
    flex-shrink: 0;
    margin-top: 0px;
}

.book-cover {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: block;
}

.book-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.book-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #F39200;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(243, 146, 0, 0.4);
}

.book-number-modern {
    position: absolute;
    top: 10px;
    left: 12px;
    background: linear-gradient(135deg, #F39200 0%, #ff9500 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.book-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
}

.book-title:hover {
    color: #F39200;
}

.book-author {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 500;
    text-align: center;
}

.book-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #F39200;
    margin-bottom: 15px;
    text-align: center;
}

.format-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.format-btn-modern {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.format-btn-modern i {
    color: inherit;
    transition: color 0.3s ease;
}

.format-btn-modern:hover {
    border-color: #F39200;
    color: #F39200;
    background: rgba(243, 146, 0, 0.1);
}

.format-btn-modern:hover i {
    color: #F39200;
}

.format-btn-modern.active {
    background: #F39200;
    border-color: #F39200;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(243, 146, 0, 0.3);
    font-weight: 700;
}

.format-btn-modern.active i {
    color: #ffffff;
}

.book-reviews {
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.book-reviews .fas,
.book-reviews .far {
    font-size: 0.85rem;
    margin-right: 2px;
}

.add-to-cart-modern {
    background: linear-gradient(135deg, #F39200 0%, #ff9500 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.3);
    margin: 0 auto;
    display: block;
}

.add-to-cart-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 146, 0, 0.4);
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-banner-carousel .banner-title {
        font-size: 2rem;
    }

    .hero-banner-carousel .banner-content {
        padding: 40px 20px 20px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-nav-prev {
        left: 5px;
    }

    .carousel-nav-next {
        right: 5px;
    }

    .books-carousel-wrapper {
        padding: 20px 40px;
    }

    .modern-book-card {
        min-height: 450px;
        max-width: 180px;
        margin: 8px;
    }

    .book-cover-container {
        height: 200px;
        padding: 12px 8px 10px 8px;
        margin-bottom: 15px;
    }

    .book-cover {
        height: 180px;
        max-height: 180px;
    }

    .book-title {
        font-size: 1rem;
        margin-bottom: 8px;
        padding: 0 10px;
    }

    .book-author {
        font-size: 0.9rem;
        margin-bottom: 10px;
        padding: 0 10px;
    }

    .book-price {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .format-buttons {
        margin-bottom: 12px;
        gap: 6px;
        padding: 0 10px;
    }

    .format-btn-modern {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .book-reviews {
        margin-bottom: 12px;
        padding: 0 10px;
    }

    .add-to-cart-modern {
        padding: 10px 16px;
        font-size: 0.9rem;
        margin: 0 10px 15px 10px;
    }

    .book-info {
        padding: 0 10px 15px 10px !important;
    }
}

/* ===== OWL CAROUSEL CUSTOM STYLES ===== */
.owl-theme .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px 7px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #F39200;
    transform: scale(1.2);
}

.hero-banner-carousel .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== LOADING ANIMATIONS ===== */
.books-loading {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.books-loading.fade-out {
    opacity: 0;
}

/* ===== HOVER EFFECTS ===== */
.modern-book-card .book-info {
    transition: all 0.3s ease;
    padding: 0 15px 20px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.modern-book-card:hover .book-info {
    transform: translateY(-5px);
}

/* ===== SECTION SPACING ===== */
.featured-books-section {
    padding: 10px 0;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 576px) {
    .hero-banners-container {
        margin-top: 0;
    }

    .hero-banner-carousel .item {
        height: 300px;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .books-carousel-wrapper {
        padding: 15px 20px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .carousel-nav-prev {
        left: 5px;
    }

    .carousel-nav-next {
        right: 5px;
    }

    .modern-book-card {
        min-height: 400px;
        max-width: 200px;
        margin: 5px;
    }

    /* Cuando solo hay un item, hacer la tarjeta más ancha */
    .modern-books-carousel .owl-item:only-child .modern-book-card,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card,
    .modern-books-carousel[data-items="1"] .modern-book-card {
        max-width: 85% !important;
        margin: 0 auto !important;
    }

    .modern-book-card .book-cover-container {
        height: 180px;
        padding: 10px 2px 8px 2px !important;
        margin-bottom: 12px;
    }

    .modern-book-card .book-cover {
        height: 160px;
        max-height: 160px;
        width: 98% !important;
        max-width: 98% !important;
        object-fit: cover;
    }

    .modern-book-card .book-title {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 6px;
        padding: 0 8px;
    }

    .modern-book-card .book-author {
        font-size: 0.85rem;
        margin-bottom: 8px;
        padding: 0 8px;
    }

    .modern-book-card .book-price {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .modern-book-card .format-buttons {
        margin-bottom: 10px;
        gap: 5px;
        padding: 0 8px;
        justify-content: center;
    }

    .modern-book-card .format-btn-modern {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 18px;
    }

    .modern-book-card .book-reviews {
        margin-bottom: 10px;
        font-size: 0.8rem;
        padding: 0 8px;
        text-align: center;
    }

    .modern-book-card .book-reviews .fas,
    .modern-book-card .book-reviews .far {
        font-size: 0.75rem;
    }

    .modern-book-card .add-to-cart-modern {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        margin: 0 8px 12px 8px !important;
        border-radius: 18px !important;
        display: block !important;
        text-align: center !important;
        width: calc(100% - 16px) !important;
    }

    .modern-book-card .book-info {
        padding: 0 8px 12px 8px !important;
        text-align: center;
    }

    .book-number-modern {
        width: 30px;
        height: 30px;
        top: 8px;
        left: 10px;
        font-size: 0.8rem;
    }

    .book-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) {
    .header-fixed.toolbar-fixed .wrapper {
        padding-top: calc(35px + var(--kt-toolbar-height)) !important;
    }
}

@media (max-width: 991.98px) {
    .header-tablet-and-mobile-fixed .wrapper {
        padding-top: 95px !important;
    }
}

/* ===== EXTRA SMALL MOBILE DEVICES ===== */
@media (max-width: 480px) {
    .books-carousel-wrapper {
        padding: 15px 5px;
    }

    .modern-book-card {
        min-height: 380px;
        max-width: 180px;
        margin: 3px;
    }

    /* Cuando solo hay un item, hacer la tarjeta más ancha */
    .modern-books-carousel .owl-item:only-child .modern-book-card,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card,
    .modern-books-carousel[data-items="1"] .modern-book-card {
        max-width: 95% !important;
        min-width: 320px !important;
        margin: 0 auto !important;
        min-height: 480px !important;
    }

    .modern-book-card .book-cover-container {
        height: 160px;
        padding: 8px 1px 6px 1px !important;
        margin-bottom: 10px;
    }

    /* Imagen más grande cuando hay solo un elemento */
    .modern-books-carousel .owl-item:only-child .modern-book-card .book-cover-container,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card .book-cover-container {
        height: 280px !important;
        padding: 15px 2px 10px 2px !important;
        margin-bottom: 15px !important;
    }

    .modern-book-card .book-cover {
        height: 140px;
        max-height: 140px;
        width: 99% !important;
        max-width: 99% !important;
        object-fit: cover;
    }

    /* Imagen más grande cuando hay solo un elemento */
    .modern-books-carousel .owl-item:only-child .modern-book-card .book-cover,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card .book-cover {
        height: 260px !important;
        max-height: 260px !important;
        width: 99% !important;
        max-width: 99% !important;
    }

    .modern-book-card .book-title {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 5px;
        padding: 0 6px;
    }

    /* Texto más grande cuando hay solo un elemento */
    .modern-books-carousel .owl-item:only-child .modern-book-card .book-title,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card .book-title {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
        padding: 0 10px !important;
    }

    .modern-book-card .book-author {
        font-size: 0.75rem;
        margin-bottom: 6px;
        padding: 0 6px;
    }

    /* Autor más grande cuando hay solo un elemento */
    .modern-books-carousel .owl-item:only-child .modern-book-card .book-author,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card .book-author {
        font-size: 0.95rem !important;
        margin-bottom: 10px !important;
        padding: 0 10px !important;
    }

    .modern-book-card .book-price {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    /* Precio más grande cuando hay solo un elemento */
    .modern-books-carousel .owl-item:only-child .modern-book-card .book-price,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card .book-price {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
    }

    .modern-book-card .format-buttons {
        margin-bottom: 8px;
        gap: 4px;
        padding: 0 6px;
        justify-content: center;
    }

    /* Botones más grandes cuando hay solo un elemento */
    .modern-books-carousel .owl-item:only-child .modern-book-card .format-buttons,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card .format-buttons {
        margin-bottom: 12px !important;
        gap: 8px !important;
        padding: 0 10px !important;
    }

    .modern-book-card .format-btn-modern {
        padding: 4px 8px;
        font-size: 0.7rem;
        border-radius: 15px;
    }

    /* Botones de formato más grandes cuando hay solo un elemento */
    .modern-books-carousel .owl-item:only-child .modern-book-card .format-btn-modern,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card .format-btn-modern {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
    }

    .modern-book-card .add-to-cart-modern {
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
        margin: 0 6px 10px 6px !important;
        border-radius: 15px !important;
        display: block !important;
        text-align: center !important;
        width: calc(100% - 12px) !important;
    }

    /* Botón añadir más grande cuando hay solo un elemento */
    .modern-books-carousel .owl-item:only-child .modern-book-card .add-to-cart-modern,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card .add-to-cart-modern {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        margin: 0 10px 15px 10px !important;
        border-radius: 25px !important;
        width: calc(100% - 20px) !important;
    }

    .modern-book-card .book-reviews {
        font-size: 0.75rem;
        margin-bottom: 8px;
        padding: 0 6px;
        text-align: center;
    }

    /* Reviews más grandes cuando hay solo un elemento */
    .modern-books-carousel .owl-item:only-child .modern-book-card .book-reviews,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card .book-reviews {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
        padding: 0 10px !important;
    }

    .modern-book-card .book-info {
        padding: 0 6px 10px 6px !important;
        text-align: center;
    }

    /* Info más espaciosa cuando hay solo un elemento */
    .modern-books-carousel .owl-item:only-child .modern-book-card .book-info,
    .modern-books-carousel .owl-item:first-child:last-child .modern-book-card .book-info {
        padding: 0 10px 15px 10px !important;
    }

    .book-number-modern {
        width: 28px;
        height: 28px;
        top: 6px;
        left: 8px;
        font-size: 0.75rem;
    }

    .book-badge {
        top: 6px;
        right: 6px;
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .carousel-nav-prev {
        left: 12px;
    }

    .carousel-nav-next {
        right: 12px;
    }
}

/* Modern Category Cards Styles - Redesigned */
.category-card {
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    position: relative;
    height: 100%;
}

.category-card-inner {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.category-card:hover .category-card-inner {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(243, 146, 0, 0.3);
}

.category-image {
    border-radius: 20px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover .category-image {
    transform: scale(1.08);
}

.category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(243, 146, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    transition: all 0.3s ease;
}

.category-card:hover .category-image::before {
    background: linear-gradient(135deg,
            rgba(243, 146, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.5) 100%);
}

.category-overlay {
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.05) 30%,
            rgba(0, 0, 0, 0.4) 70%,
            rgba(0, 0, 0, 0.8) 100%);
    transition: all 0.3s ease;
    z-index: 2;
}

.category-card:hover .category-overlay {
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 30%,
            rgba(0, 0, 0, 0.5) 70%,
            rgba(0, 0, 0, 0.9) 100%);
}

.category-content {
    position: relative;
    z-index: 3;
}

.category-title {
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.category-card:hover .category-title {
    transform: translateY(-3px);
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.category-hover-effect {
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 4;
    background: rgba(243, 146, 0, 0.15);
    backdrop-filter: blur(2px);
}

.category-card:hover .category-hover-effect {
    opacity: 1;
}

.hover-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(0.7) rotate(-5deg);
    box-shadow: 0 8px 32px rgba(243, 146, 0, 0.3);
    background: linear-gradient(135deg, #F39200 0%, #ff9500 100%);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.category-card:hover .hover-icon {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 12px 40px rgba(243, 146, 0, 0.5);
    background: linear-gradient(135deg, #ff9500 0%, #F39200 100%);
}

.hover-icon i {
    color: #ffffff;
    font-weight: 600;
}

/* Category card decorative elements */
.category-card-inner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #F39200, #ff9500, #F39200);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-card-inner::before {
    opacity: 0.3;
}

/* Enhanced category grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Category badge effect */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(243, 146, 0, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    transform: scale(0);
    transition: all 0.3s ease;
}

.category-card:hover .category-badge {
    transform: scale(1);
}

/* Responsive adjustments for category cards */
@media (max-width: 768px) {
    .category-image {
        height: 180px !important;
    }

    .category-title {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

    .category-content {
        padding: 1.2rem !important;
    }

    .hover-icon {
        width: 55px !important;
        height: 55px !important;
    }

    .hover-icon i {
        font-size: 1.1rem !important;
    }

    .category-badge {
        top: 10px;
        right: 10px;
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .category-image {
        height: 160px !important;
    }

    .category-title {
        font-size: 0.95rem;
        letter-spacing: 0.2px;
    }

    .category-content {
        padding: 1rem !important;
    }

    .hover-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .hover-icon i {
        font-size: 1rem !important;
    }
}

/* Modern section styling consistency */
.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e1e2d;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7e8299;
    margin-bottom: 0;
}

/* Modern Publisher Cards Styles - Similar to Category Cards */
.publisher-card {
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    position: relative;
    height: 100%;
}

.publisher-card-inner {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.publisher-card:hover .publisher-card-inner {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(243, 146, 0, 0.3);
}

.publisher-image {
    border-radius: 20px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publisher-card:hover .publisher-image {
    transform: scale(1.05);
}

.publisher-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(243, 146, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.02) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    transition: all 0.3s ease;
}

.publisher-card:hover .publisher-image::before {
    background: linear-gradient(135deg,
            rgba(243, 146, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.05) 50%,
            rgba(0, 0, 0, 0.2) 100%);
}

.publisher-overlay {
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.02) 30%,
            rgba(0, 0, 0, 0.1) 70%,
            rgba(0, 0, 0, 0.6) 100%);
    transition: all 0.3s ease;
    z-index: 2;
}

.publisher-card:hover .publisher-overlay {
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.05) 30%,
            rgba(0, 0, 0, 0.2) 70%,
            rgba(0, 0, 0, 0.8) 100%);
}

.publisher-content {
    position: relative;
    z-index: 3;
}

.publisher-title {
    font-weight: 800;
    font-size: 1rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.publisher-card:hover .publisher-title {
    transform: translateY(-3px);
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.publisher-hover-effect {
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 4;
    background: rgba(243, 146, 0, 0.15);
    backdrop-filter: blur(2px);
}

.publisher-card:hover .publisher-hover-effect {
    opacity: 1;
}

/* Publisher badge styling */
.publisher-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(243, 146, 0, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    transform: scale(0);
    transition: all 0.3s ease;
}

.publisher-card:hover .publisher-badge {
    transform: scale(1);
}

/* Publisher card decorative elements */
.publisher-card-inner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #F39200, #ff9500, #F39200);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publisher-card:hover .publisher-card-inner::before {
    opacity: 0.3;
}

/* Responsive adjustments for publisher cards */
@media (max-width: 768px) {
    .publisher-image {
        height: 160px !important;
    }

    .publisher-title {
        font-size: 0.9rem;
        letter-spacing: 0.2px;
    }

    .publisher-content {
        padding: 1rem !important;
    }

    .publisher-badge {
        top: 10px;
        right: 10px;
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .publisher-image {
        height: 140px !important;
    }

    .publisher-title {
        font-size: 0.85rem;
        letter-spacing: 0.1px;
    }

    .publisher-content {
        padding: 0.75rem !important;
    }

    .publisher-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}

.categories-container,
.publishers-container {
    padding: 0px 20px;
}

/* ===== MOBILE SPECIFIC OVERRIDES CON ALTA PRIORIDAD ===== */
@media (max-width: 480px) {

    /* Forzar imagen más grande en móvil pequeño - TODOS los casos */
    .modern-books-carousel .book-cover-container {
        height: 200px !important;
        padding: 10px 2px 8px 2px !important;
    }

    .modern-books-carousel .book-cover {
        height: 180px !important;
        max-height: 180px !important;
        width: 98% !important;
        max-width: 98% !important;
        object-fit: cover !important;
    }

    /* Cuando hay UN SOLO elemento en el carrousel */
    .modern-books-carousel.single-item-mobile .owl-item {
        width: 85% !important;
        max-width: 180px !important;
        margin: 0 auto !important;
    }

    .modern-books-carousel.single-item-mobile .modern-book-card {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        min-height: 520px !important;
        padding: 5px 0px 5px 0px !important;
        border-radius: 0px !important;
        margin-bottom: 5px !important;
    }

    /* Imagen MUY GRANDE para elemento único */
    .modern-books-carousel.single-item-mobile .book-cover-container {
        height: 294px !important;
        padding: 0px 0px 0px 0px !important;
        margin-bottom: 5px !important;
        position: relative !important;
        margin-top: 0px !important;
    }

    .modern-books-carousel.single-item-mobile .book-cover {
        height: 300px !important;
        max-height: 300px !important;
        width: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        margin: 0 auto !important;
    }

    /* Etiqueta de preventa bien posicionada para elemento único */
    .modern-books-carousel.single-item-mobile .book-badge {
        position: absolute !important;
        top: 20px !important;
        right: 5px !important;
        z-index: 10 !important;
        background: #F39200 !important;
        color: white !important;
        padding: 5px 12px !important;
        border-radius: 20px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        box-shadow: 0 3px 10px rgba(243, 146, 0, 0.4) !important;
    }

    /* Textos más grandes para elemento único */
    .modern-books-carousel.single-item-mobile .book-title {
        font-size: 1.3rem !important;
        margin-bottom: 12px !important;
        padding: 0 0px !important;
        margin-top: 10px !important;
    }

    .modern-books-carousel.single-item-mobile .book-author {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
        padding: 0 20px !important;
    }

    .modern-books-carousel.single-item-mobile .book-price {
        font-size: 1.5rem !important;
        margin-bottom: 18px !important;
    }

    .modern-books-carousel.single-item-mobile .add-to-cart-modern {
        padding: 15px 30px !important;
        font-size: 1.1rem !important;
        margin: 0 auto 25px auto !important;
        border-radius: 30px !important;
        width: 100% !important;
        max-width: 250px !important;
        display: block !important;
        text-align: center !important;
    }
}

/* ===== MOBILE SPECIFIC OVERRIDES ===== */
@media (max-width: 576px) {

    /* Asegurar que la imagen ocupe más ancho en móvil */
    .modern-books-carousel .modern-book-card .book-cover {
        width: 98% !important;
        max-width: 98% !important;
    }

    /* Asegurar que el botón esté centrado */
    .modern-books-carousel .modern-book-card .add-to-cart-modern {
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        margin-bottom: 0px !important;
    }

    /* Hacer la tarjeta más ancha cuando hay solo un elemento */
    .modern-books-carousel .owl-stage-outer[style*="width"] .owl-item:only-child {
        width: 90% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {

    /* Estilos generales para móvil muy pequeño */
    .modern-books-carousel .modern-book-card .book-cover {
        width: 99% !important;
        max-width: 99% !important;
        border-radius: 0px !important;
    }

    /* Cuando hay solo un elemento visible - usando JavaScript para detectar */
    .single-item-mobile .modern-book-card {
        max-width: 95% !important;
        min-width: 200px !important;
        margin: 0 auto !important;
        min-height: 500px !important;
    }

    .single-item-mobile .book-cover-container {
        height: 300px !important;
        padding: 20px 5px 15px 5px !important;
        margin-bottom: 15px !important;
    }

    .single-item-mobile .book-cover {
        height: 280px !important;
        max-height: 280px !important;
        width: 99% !important;
        max-width: 99% !important;
    }

    .single-item-mobile .book-title {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
        padding: 0 15px !important;
    }

    .single-item-mobile .book-author {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
        padding: 0 15px !important;
    }

    .single-item-mobile .book-price {
        font-size: 1.4rem !important;
        margin-bottom: 15px !important;
    }

    .single-item-mobile .format-buttons {
        margin-bottom: 15px !important;
        gap: 10px !important;
        padding: 0 15px !important;
    }

    .single-item-mobile .format-btn-modern {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        border-radius: 25px !important;
    }

    .single-item-mobile .add-to-cart-modern {
        padding: 15px 25px !important;
        font-size: 1rem !important;
        margin: 0 15px 0px 15px !important;
        border-radius: 30px !important;
        width: calc(100% - 30px) !important;
    }

    .single-item-mobile .book-reviews {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
        padding: 0 15px !important;
    }

    .single-item-mobile .book-info {
        padding: 0 15px 5px 15px !important;
    }
}

/* ===== FORMAT BUTTONS SMALL (CLASSIC CAROUSEL) ===== */
.format-btn-small {
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 500;
    font-size: 11px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    background: white;
    color: #495057;
    min-height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    min-width: 60px;
}

.format-btn-small i {
    font-size: 14px;
    margin-bottom: 3px;
    color: #6c757d;
}

.format-btn-small span {
    font-size: 10px;
    line-height: 1;
}

.format-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-color: #F39200;
}

.format-btn-small.active {
    background: white;
    color: #495057;
    border: 2px solid #F39200 !important;
    box-shadow: 0 0 0 1px rgba(243, 146, 0, 0.1);
}

.format-btn-small.active i {
    color: #F39200;
}

.format-btn-small.active:hover {
    background: white;
    color: #495057;
    border: 2px solid #F39200 !important;
    box-shadow: 0 0 0 1px rgba(243, 146, 0, 0.1);
}

/* Mobile optimizations for format-btn-small */
@media (max-width: 768px) {
    .format-btn-small {
        min-height: 50px;
        min-width: 55px;
        padding: 6px 10px;
        font-size: 10px;
    }

    .format-btn-small i {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .format-btn-small span {
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    .format-btn-small {
        min-height: 45px;
        min-width: 50px;
        padding: 5px 8px;
        font-size: 9px;
    }

    .format-btn-small i {
        font-size: 11px;
        margin-bottom: 1px;
    }

    .format-btn-small span {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .format-btn-small {
        min-height: 40px;
        min-width: 45px;
        padding: 4px 6px;
        font-size: 8px;
    }

    .format-btn-small i {
        font-size: 10px;
        margin-bottom: 1px;
    }

    .format-btn-small span {
        font-size: 7px;
    }
}

/* ===== OWL CAROUSEL MOBILE FIXES ===== */
@media (max-width: 768px) {
    .owl-carousel .owl-item {
        padding: 0 5px;
    }

    .modern-books-carousel .owl-item {
        display: flex;
        justify-content: center;
        align-items: stretch;
    }

    .modern-books-carousel .item {
        width: 100% !important;
        display: flex;
        justify-content: center;
    }

    /* Estilos específicos para cuando solo hay un elemento */
    .modern-books-carousel .owl-stage {
        display: flex;
        justify-content: center;
    }

    .modern-books-carousel .owl-item:only-child {
        display: flex;
        justify-content: center;
        width: 100% !important;
    }

    /* Classic carousel card improvements */
    .card .card-body {
        padding: 15px 10px;
    }

    .card .card-body img {
        height: 200px !important;
        max-height: 200px;
        object-fit: cover;
    }

    .card .card-body .fs-4 {
        font-size: 1rem !important;
        line-height: 1.3;
        margin-bottom: 8px !important;
    }

    .card .card-body .fw-bold {
        font-size: 0.9rem;
        margin-bottom: 8px !important;
    }

    .card .card-body .fs-6 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 576px) {
    .owl-carousel .owl-item {
        padding: 0 3px;
    }

    /* Classic carousel further improvements */
    .card .card-body {
        padding: 12px 8px;
    }

    .card .card-body img {
        height: 180px !important;
        max-height: 180px;
    }

    .card .card-body .fs-4 {
        font-size: 0.9rem !important;
        line-height: 1.2;
        margin-bottom: 6px !important;
    }

    .card .card-body .fw-bold {
        font-size: 0.8rem;
        margin-bottom: 6px !important;
    }

    .card .card-body .fs-6 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 480px) {
    .owl-carousel .owl-item {
        padding: 0 2px;
    }

    /* Classic carousel smallest screens */
    .card .card-body {
        padding: 10px 6px;
    }

    .card .card-body img {
        height: 160px !important;
        max-height: 160px;
    }

    .card .card-body .fs-4 {
        font-size: 0.85rem !important;
        line-height: 1.1;
        margin-bottom: 5px !important;
    }

    .card .card-body .fw-bold {
        font-size: 0.75rem;
        margin-bottom: 5px !important;
    }

    .card .card-body .fs-6 {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }
}