.flipbook-gallery-page {
    background-color: #393838; 
    color: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

.gallery-main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 50px;
}

.btn-regresar-limpio {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #A3C73E; 
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 100;
    border: none;
}

.btn-regresar-limpio:hover {
    background-color: #8eaf34;
    color: #ffffff;
    transform: scale(1.05);
}

.gallery-header {
    margin-top: 80px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.gallery-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #ffffff;
}

.gallery-divider {
    width: 60px;
    height: 4px;
    background-color: #A3C73E; 
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

.gallery-subtitle {
    color: #e0e0e0;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.white-container {
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px); 
    border-radius: 12px;
    padding: 60px 20px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); 
}

.empty-icon {
    margin-bottom: 20px;
}

.empty-icon i {
    font-size: 3.5rem;
    color: #A3C73E; 
    border: 2px solid #A3C73E;
    padding: 10px 20px;
    border-radius: 12px;
}

.empty-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff; 
}

.empty-text {
    color: #cccccc; 
    font-size: 1.05rem;
    margin: 0;
}

.flipbook-card {
    background: #ffffff; 
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
}

.flipbook-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); 
}

.cover-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 4px solid #A3C73E; 
}

.cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.flipbook-card:hover .cover-wrapper img {
    transform: scale(1.05);
}

.info-wrapper {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.book-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #393838; 
    margin-bottom: 25px;
}

.btn-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f4f5f7;
    color: #393838;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-read:hover {
    background-color: #A3C73E;
    color: #ffffff;
    border-color: #A3C73E;
}

.gallery-footer {
    padding: 30px 20px;
}

.gallery-footer p {
    color: rgba(255, 255, 255, 0.8); 
    font-size: 1.1rem; 
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .btn-regresar-limpio {
        top: 15px;
        left: 15px;
    }
    .gallery-header {
        margin-top: 70px;
    }
    .gallery-footer p {
        font-size: 1rem;
    }
}