﻿.t_linea {
        height: 1px;
    line-height: 1%;
    margin-bottom: 30px;
    margin-top: 70px;
}
.titleL {
    background: none repeat scroll 0 0 #FFFFFF;
    margin: 0px !important;
    font-weight: bolder;
    font-family: "Nunito", sans-serif;
        padding: 0px 15px;
}
h3 {
    font-size: 34px;
    background: #012970 !important;
    color: #012970;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    margin-bottom: 40px;
}

.divheighttit {
    height: auto;
}
.divheightAut {
    height: auto;
}
.divheightTema {
    height: auto;
    display: block;
}


.book-card {
    background: white;
    padding: 15px;
    box-shadow: 0 5px 11px rgb(0 0 0 / 6%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    text-align: center;
    border: 1px solid #215aa8;
    display: flex;
    flex-direction: column;
}

    .book-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #3dae2b, #ffcd00);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .book-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 5, 0.15);
    }

        .book-card:hover::before {
            transform: scaleX(1);
        }

.book-cover {
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    border: solid .5px gray;
    margin: 28px 0px 14px 0px;
    /*box-shadow: 0 1rem 1rem rgba(0, 0, 5, 0.18) !important;*/
}

.book-card:hover .book-cover {
    transform: scale(1.05) rotatez(2deg);
    box-shadow: 0 20px 30px rgba(194, 200, 212, 0.48);
}

.book-cover:hover {
    transform: scale(1.05) rotatez(2deg);
    box-shadow: 0 20px 30px rgba(190, 194, 202, 0.48);
}
.book-title {
    font-size: 1.03rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
   /* -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;*/
}

.book-author {
    font-style: italic;
    margin-bottom: 8px;
    text-overflow: ellipsis;
    text-align: left;
    font-size: .9em;
    color: #373d44;
    /*white-space: nowrap;*/
}

.book-tema {   
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    font-size: .9em;
    color: #373d44;
    /*white-space: nowrap;*/
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    /*flex-wrap: wrap;*/
}

    .pagination button {
        padding: 12px 16px;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
        min-width: 44px;
    }

        .pagination button:hover {
            transform: translateY(-2px);
            color: black;
    background-color: #ffcd00;
    border-color: #d4daed;
    box-shadow: 0 0 0 0.2rem rgb(233 212 0 / 47%);;    
        }

        .pagination button:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            color: black;
        }

        .pagination button.active {
            background: #ffcd00;
            /*transform: scale(1.1);*/
        }

.page-info {
    color: #666;
    font-size: 22px;
    margin: 0 15px;
}
/*
@media (max-width: 1200px) {
    .books-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}*/

@media (max-width: 1000px) {
    .books-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .books-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .book-card {
        padding: 12px;
        min-height: 240px;
    }

    .book-cover {
        height: 120px;
    }

  

    .pagination {
        gap: 5px;
    }

        .pagination button {
            padding: 10px 12px;
            font-size: 12px;
        }

    .page-info {
        font-size: 12px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }

    .book-card {
        padding: 10px;
        min-height: 220px;
    }

    .book-cover {
        height: 100px;
    }

    .pagination button {
        padding: 2px 3px;
        min-width: 25px;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn_Ver {
    color: white;
    text-decoration: none;
    font-size: clamp(1rem, 4vw, 1.1rem);
    font-weight: normal;
    font-family: 'Nunito';
    border-radius: 4px;
    padding: 8px 15px;
    box-shadow: 2px 2px 8px rgb(0 0 0 / 29%);
    background-color: #2259a8;
}

    .btn_Ver:hover {
    box-shadow: 2px 2px 8px rgb(0 0 0 / 29%);    
    background: #4673b6;
    text-decoration: none !important;
    color: white;
}

.badge-nuevo {
    position: absolute;
    top: 7px;
    right: 5px;
    z-index: 1;
    color: #3dae2b;
}

.badge-text {
    position: relative;
    color: #3dae2b;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid #3dae2b;
    border-radius: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.book-card > span:has(.btn_Ver) {
    margin-top: auto;
}
.book-actions {
    margin-top: auto;
}

@media (min-width: 1000px) and (max-width: 1200px) {
    .divheighttit {
        height: 80px;
    }

    .divheightAut {
        height: 40px;
    }


    .book-title {
        font-size: .73rem;
    }

    .book-author {
        font-size: .73em;
    }

    .book-tema {
        font-size: .73em;
    }
    .divheightTema {
        display: block !important;
    }
}
    @media (min-width: 768px) and (max-width: 1000px) {
        .divheighttit {
            height: 100px;
        }

        .divheightAut {
            height: 70px;
        }

        .divheightTema {
            height: auto;
        }

        .book-title {
            font-size: .75rem;
        }

        .book-author {
            font-size: .75em;
        }

        .book-tema {
            font-size: .7em;
        }
    }

    @media (min-width: 768px) and (max-width: 900px) {
        
    }

    @media (min-width: 500px) and (max-width: 768px) {
        .divheighttit {
            height: 70px;
        }

        .divheightAut {
            height: 40px;
        }


        .book-title {
            font-size: .6rem;
        }

        .book-author {
            font-size: .6em;
        }
    }

    @media (max-width: 500px) {
        .divheighttit {
            height: 50px;
        }

        .divheightAut {
            height: 40px;
        }

    

        .book-title {
            font-size: .74rem;
        }

        .book-author {
            font-size: .75em;
        }
    }

