/* Banner de Continuidad de Lectura */
.reading-progress-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 24px;
    margin: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    animation: slideInUp 0.6s ease-out;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-icon-wrapper {
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.progress-text {
    display: flex;
    flex-direction: column;
}

.progress-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-location {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.btn-resume {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-resume:hover {
    background: var(--primary-dark);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* Sección de Vistos Recientemente */
.recently-viewed-section {
    margin: 60px 0;
    padding: 40px 30px;
    background: #f8fafc;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 4px;
}

.carousel-nav-btns {
    display: flex;
    gap: 12px;
}

.btn-nav-prev,
.btn-nav-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-nav-prev:hover,
.btn-nav-next:hover {
    color: var(--primary);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.recent-carousel-wrapper {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.recent-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.recent-book-card {
    min-width: 190px;
    max-width: 190px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.recent-book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-light);
}

.recent-book-cover {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
}

.recent-book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.05));
}

.recent-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.recent-book-card:hover .recent-book-cover img {
    transform: scale(1.08);
}

.recent-book-info {
    padding: 18px;
    background: white;
}

.recent-book-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    transition: color 0.3s;
}

.recent-book-card:hover .recent-book-title {
    color: var(--primary);
}

.recent-book-category {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recent-book-category::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .reading-progress-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-resume {
        width: 100%;
        justify-content: center;
    }
}